aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-01-07 05:37:31 +0000
committerRichard M. Stallman <[email protected]>1994-01-07 05:37:31 +0000
commitb69f3ab1c817320aeb32496dc0170d518c1533d8 (patch)
tree73c7ae57c200c89156d9c58c8816153b0e036657 /lisp
parent424532459bb29134a6f22316b38e0f93acd2ee44 (diff)
(make-lucid-menu-keymap): Allow multiple identical inactive strings.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/lmenu.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lmenu.el b/lisp/emacs-lisp/lmenu.el
index d06b4d56fe..55cef19053 100644
--- a/lisp/emacs-lisp/lmenu.el
+++ b/lisp/emacs-lisp/lmenu.el
@@ -79,8 +79,12 @@
(if (symbolp callback)
(fset command callback)
(fset command (list 'lambda () '(interactive) callback)))))
- (if name
- (define-key menu (vector (intern name)) (cons name command))))
+ (if (null command)
+ ;; Handle inactive strings specially--allow any number
+ ;; of identical ones.
+ (setcdr menu (cons (list nil name) (cdr menu)))
+ (if name
+ (define-key menu (vector (intern name)) (cons name command)))))
(setq menu-items (cdr menu-items)))
menu))