(make-lucid-menu-keymap): Allow multiple identical inactive strings.
This commit is contained in:
parent
424532459b
commit
b69f3ab1c8
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue