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 committed Dec 1, 2024
1 parent 37990e5 commit cde5f4c
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 @@ -537,7 +537,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))

Check failure on line 542 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 542 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 542 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 542 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'.
def)))
(interactive)
(meow--execute-kbd-macro def)))
(put cmd-name 'meow-dispatch def)
Expand Down

0 comments on commit cde5f4c

Please sign in to comment.