aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/easymenu.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el
index 8bde63f697a..bf2e190e489 100644
--- a/lisp/emacs-lisp/easymenu.el
+++ b/lisp/emacs-lisp/easymenu.el
@@ -410,7 +410,7 @@ KEY does not have to be a symbol, and comparison is done with equal."
410 "Return t if NAME is the name of menu item ITEM. 410 "Return t if NAME is the name of menu item ITEM.
411NAME can be either a string, or a symbol." 411NAME can be either a string, or a symbol."
412 (if (consp item) 412 (if (consp item)
413 (if (symbolp name) 413 (if (symbolp name)
414 (eq (car-safe item) name) 414 (eq (car-safe item) name)
415 (if (stringp name) 415 (if (stringp name)
416 ;; Match against the text that is displayed to the user. 416 ;; Match against the text that is displayed to the user.
@@ -434,7 +434,7 @@ When non-nil, NOEXP indicates that CALLBACK cannot be an expression
434 (make-symbol (format "menu-function-%d" easy-menu-item-count)))) 434 (make-symbol (format "menu-function-%d" easy-menu-item-count))))
435 (setq easy-menu-item-count (1+ easy-menu-item-count)) 435 (setq easy-menu-item-count (1+ easy-menu-item-count))
436 (fset command 436 (fset command
437 (if (or (keymapp callback) noexp) callback 437 (if (or (keymapp callback) (functionp callback) noexp) callback
438 `(lambda () (interactive) ,callback))) 438 `(lambda () (interactive) ,callback)))
439 command)) 439 command))
440 440