From d8ed3866cf921f1fb7e7a9c42a27c20e4c1def76 Mon Sep 17 00:00:00 2001 From: DogLooksGood Date: Sun, 1 Dec 2024 18:42:19 +0800 Subject: [PATCH] Check the version before using buttonize --- meow-util.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meow-util.el b/meow-util.el index eb93fc3..2e718c1 100644 --- a/meow-util.el +++ b/meow-util.el @@ -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)