Skip to content

Commit

Permalink
Check the version before using buttonize
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood authored and jidibinlin committed Jan 2, 2025
1 parent cffdcbd commit d8ed386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meow-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,10 @@ that bound to DEF. Otherwise, return DEF."
(defalias cmd-name
(lambda ()
(:documentation
(format "Execute the command which is bound to %s." (buttonize def 'describe-key (kbd def))))
(format "Execute the command which is bound to %s."
(if (version<= "29.1" emacs-version)
(buttonize def 'describe-key (kbd def))
def)))
(interactive)
(meow--execute-kbd-macro def)))
(put cmd-name 'meow-dispatch def)
Expand Down

0 comments on commit d8ed386

Please sign in to comment.