diff options
| author | Richard M. Stallman | 1994-01-07 05:37:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-07 05:37:31 +0000 |
| commit | b69f3ab1c817320aeb32496dc0170d518c1533d8 (patch) | |
| tree | 73c7ae57c200c89156d9c58c8816153b0e036657 | |
| parent | 424532459bb29134a6f22316b38e0f93acd2ee44 (diff) | |
| download | emacs-b69f3ab1c817320aeb32496dc0170d518c1533d8.tar.gz emacs-b69f3ab1c817320aeb32496dc0170d518c1533d8.zip | |
(make-lucid-menu-keymap): Allow multiple identical inactive strings.
| -rw-r--r-- | lisp/emacs-lisp/lmenu.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lmenu.el b/lisp/emacs-lisp/lmenu.el index d06b4d56fee..55cef190538 100644 --- a/lisp/emacs-lisp/lmenu.el +++ b/lisp/emacs-lisp/lmenu.el | |||
| @@ -79,8 +79,12 @@ | |||
| 79 | (if (symbolp callback) | 79 | (if (symbolp callback) |
| 80 | (fset command callback) | 80 | (fset command callback) |
| 81 | (fset command (list 'lambda () '(interactive) callback))))) | 81 | (fset command (list 'lambda () '(interactive) callback))))) |
| 82 | (if name | 82 | (if (null command) |
| 83 | (define-key menu (vector (intern name)) (cons name command)))) | 83 | ;; Handle inactive strings specially--allow any number |
| 84 | ;; of identical ones. | ||
| 85 | (setcdr menu (cons (list nil name) (cdr menu))) | ||
| 86 | (if name | ||
| 87 | (define-key menu (vector (intern name)) (cons name command))))) | ||
| 84 | (setq menu-items (cdr menu-items))) | 88 | (setq menu-items (cdr menu-items))) |
| 85 | menu)) | 89 | menu)) |
| 86 | 90 | ||