aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-24 04:00:25 +0000
committerRichard M. Stallman1997-08-24 04:00:25 +0000
commit2a9f2437c401f997ebdd4f5194d09bd868633e22 (patch)
treeb8a83510d5e270c263db56b5594d3301fff693b4
parent95772e852d156374a4c83b2d3322d36a731f530e (diff)
downloademacs-2a9f2437c401f997ebdd4f5194d09bd868633e22.tar.gz
emacs-2a9f2437c401f997ebdd4f5194d09bd868633e22.zip
(tmm-get-keymap): Ignore any command now disabled for menus.
-rw-r--r--lisp/tmm.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 3ca00def6e1..35630aa6d5a 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -426,6 +426,11 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
426 (setq str event event nil km (cons 'keymap elt)) 426 (setq str event event nil km (cons 'keymap elt))
427 ))) 427 )))
428 (and km (stringp km) (setq str km)) 428 (and km (stringp km) (setq str km))
429 ;; Verify that the command is enabled;
430 ;; if not, don't mention it.
431 (when (and km (symbolp km) (get km 'menu-enable))
432 (unless (eval (get km 'menu-enable))
433 (setq km nil)))
429 (and km str 434 (and km str
430 (or (assoc str tmm-km-list) 435 (or (assoc str tmm-km-list)
431 (setq tmm-km-list 436 (setq tmm-km-list