Skip to content

Commit

Permalink
Fix documentation string in meow--parse-def (meow-edit#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 and jidibinlin committed Jan 2, 2025
1 parent 4beb60a commit e136244
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 @@ -543,7 +543,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))))
(interactive)
(meow--execute-kbd-macro def)))
(put cmd-name 'meow-dispatch def)
Expand Down

0 comments on commit e136244

Please sign in to comment.