Skip to content

Give generated commands accurate docstrings#203

Merged
bbatsov merged 1 commit into
masterfrom
fix-generated-docstrings
Jul 1, 2026
Merged

Give generated commands accurate docstrings#203
bbatsov merged 1 commit into
masterfrom
fix-generated-docstrings

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 1, 2026

Copy link
Copy Markdown
Owner

The helm-projectile-command macro stamped the same "Use projectile with Helm for finding files in project" docstring onto every command it generates, so C-h f on helm-projectile-switch-to-buffer, helm-projectile-recentf, helm-projectile-grep and the rest all described finding files. Derive the docstring from each command's prompt instead, which already names the action (e.g. "Switch to buffer (Helm-Projectile).").

  • The commits are consistent with our contribution guidelines
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog
  • You've updated the readme (no behavior change)

The `helm-projectile-command' macro stamped the same "finding files in
project" docstring onto every command it defines, so `C-h f' on
`helm-projectile-switch-to-buffer', -recentf, -grep and friends all
described the wrong thing. Derive the docstring from each command's
prompt, which already names the action.
@bbatsov bbatsov merged commit 903709f into master Jul 1, 2026
10 checks passed
@bbatsov bbatsov deleted the fix-generated-docstrings branch July 1, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant