Skip to content

Commit

Permalink
Fix documentation string in meow--parse-def (#682)
Browse files Browse the repository at this point in the history
Updated the documentation string in the `meow--parse-def` function to use `buttonize` for better
context. This change improves the clarity of the message displayed when executing commands bound to
a key, ensuring it correctly reflects the keybinding being used.
  • Loading branch information
jixiuf authored Nov 30, 2024
1 parent dd79ccc commit 74fc0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meow-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ that bound to DEF. Otherwise, return DEF."
(defalias cmd-name
(lambda ()
(:documentation
(format "Execute the command which is bound to %s." def))
(format "Execute the command which is bound to %s." (buttonize def 'describe-key (kbd def))))

Check failure on line 540 in meow-util.el

View workflow job for this annotation

GitHub Actions / check (26.3, true)

You should depend on (emacs "29.1") or the compat package if you need `buttonize'.

Check failure on line 540 in meow-util.el

View workflow job for this annotation

GitHub Actions / check (27.1, true)

You should depend on (emacs "29.1") or the compat package if you need `buttonize'.

Check warning on line 540 in meow-util.el

View workflow job for this annotation

GitHub Actions / check (28.2, true)

the function ‘buttonize’ is not known to be defined.

Check failure on line 540 in meow-util.el

View workflow job for this annotation

GitHub Actions / check (28.2, true)

You should depend on (emacs "29.1") or the compat package if you need `buttonize'.
(interactive)
(meow--execute-kbd-macro def)))
(put cmd-name 'meow-dispatch def)
Expand Down

0 comments on commit 74fc0e5

Please sign in to comment.