(tmm-get-keymap): Ignore any command now disabled for menus.
This commit is contained in:
parent
95772e852d
commit
2a9f2437c4
1 changed files with 5 additions and 0 deletions
|
@ -426,6 +426,11 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
|
|||
(setq str event event nil km (cons 'keymap elt))
|
||||
)))
|
||||
(and km (stringp km) (setq str km))
|
||||
;; Verify that the command is enabled;
|
||||
;; if not, don't mention it.
|
||||
(when (and km (symbolp km) (get km 'menu-enable))
|
||||
(unless (eval (get km 'menu-enable))
|
||||
(setq km nil)))
|
||||
(and km str
|
||||
(or (assoc str tmm-km-list)
|
||||
(setq tmm-km-list
|
||||
|
|
Loading…
Add table
Reference in a new issue