Mark easy-menu-do-define menus as "not interesting"
* lisp/emacs-lisp/easymenu.el (easy-menu-do-define): Mark menu keymaps as "not interesting" when doing completion.
This commit is contained in:
parent
9291e7316f
commit
2bfcd93e83
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ This is expected to be bound to a mouse event."
|
|||
:filter)
|
||||
'identity)
|
||||
(symbol-function symbol)))
|
||||
symbol)))))
|
||||
symbol))))
|
||||
;; These symbols are commands, but not interesting for users
|
||||
;; to `M-x TAB'.
|
||||
(put symbol 'completion-predicate 'ignore))
|
||||
(dolist (map (if (keymapp maps) (list maps) maps))
|
||||
(define-key map
|
||||
(vector 'menu-bar (easy-menu-intern (car menu)))
|
||||
|
|
Loading…
Add table
Reference in a new issue