"Return t if NAME is the name of menu item ITEM.
NAME can be either a string, or a symbol."
(if (consp item)
- (if (symbolp name)
+ (if (symbolp name)
(eq (car-safe item) name)
(if (stringp name)
;; Match against the text that is displayed to the user.
(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) noexp) callback
+ (if (or (keymapp callback) (functionp callback) noexp) callback
`(lambda () (interactive) ,callback)))
command))