diff options
| -rw-r--r-- | lisp/emacs-lisp/easymenu.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index 081780bd465..4988d0e1d14 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el | |||
| @@ -203,7 +203,11 @@ is a list of menu items, as above." | |||
| 203 | (setq command (cons item-string command)) | 203 | (setq command (cons item-string command)) |
| 204 | (if (not have-buttons) ; Save all items so that we can fix | 204 | (if (not have-buttons) ; Save all items so that we can fix |
| 205 | (setq old-items (cons command old-items))) ; if we have buttons. | 205 | (setq old-items (cons command old-items))) ; if we have buttons. |
| 206 | (if name (define-key menu (vector (intern name)) command)))) | 206 | (when name |
| 207 | (let ((key (vector (intern name)))) | ||
| 208 | (if (lookup-key menu key) | ||
| 209 | (setq key (vector (intern (concat name "*"))))) | ||
| 210 | (define-key menu key command))))) | ||
| 207 | (setq menu-items (cdr menu-items))) | 211 | (setq menu-items (cdr menu-items))) |
| 208 | menu)) | 212 | menu)) |
| 209 | 213 | ||