Mercurial > emacs
diff lisp/emacs-lisp/easymenu.el @ 94305:67bb48862873
(easy-menu-make-symbol): Don't wrap keyboard macros within lambdas.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 24 Apr 2008 02:02:40 +0000 |
parents | 2dfbe4c86ab7 |
children | 90a2847062be |
line wrap: on
line diff
--- a/lisp/emacs-lisp/easymenu.el Wed Apr 23 21:01:31 2008 +0000 +++ b/lisp/emacs-lisp/easymenu.el Thu Apr 24 02:02:40 2008 +0000 @@ -470,7 +470,10 @@ (make-symbol (format "menu-function-%d" easy-menu-item-count)))) (setq easy-menu-item-count (1+ easy-menu-item-count)) (fset command - (if (or (keymapp callback) (functionp callback) noexp) callback + (if (or (keymapp callback) (commandp callback) + ;; `functionp' is probably not needed. + (functionp callback) noexp) + callback `(lambda () (interactive) ,callback))) command))