410 |
"Return t if NAME is the name of menu item ITEM. |
"Return t if NAME is the name of menu item ITEM. |
411 |
NAME can be either a string, or a symbol." |
NAME can be either a string, or a symbol." |
412 |
(if (consp item) |
(if (consp item) |
413 |
(if (symbolp name) |
(if (symbolp name) |
414 |
(eq (car-safe item) name) |
(eq (car-safe item) name) |
415 |
(if (stringp name) |
(if (stringp name) |
416 |
;; Match against the text that is displayed to the user. |
;; Match against the text that is displayed to the user. |
434 |
(make-symbol (format "menu-function-%d" easy-menu-item-count)))) |
(make-symbol (format "menu-function-%d" easy-menu-item-count)))) |
435 |
(setq easy-menu-item-count (1+ easy-menu-item-count)) |
(setq easy-menu-item-count (1+ easy-menu-item-count)) |
436 |
(fset command |
(fset command |
437 |
(if (or (keymapp callback) noexp) callback |
(if (or (keymapp callback) (functionp callback) noexp) callback |
438 |
`(lambda () (interactive) ,callback))) |
`(lambda () (interactive) ,callback))) |
439 |
command)) |
command)) |
440 |
|
|