aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2005-05-13 23:23:42 +0000
committerNick Roberts2005-05-13 23:23:42 +0000
commit7ae862e279b45d58518bf910e979a3c1f0cb2683 (patch)
tree2589359100019e50b575dfe766ba1b713a2fca1a
parentf964fa513ccfe7b943d8cfc5bbf73b802d4eebd6 (diff)
downloademacs-7ae862e279b45d58518bf910e979a3c1f0cb2683.tar.gz
emacs-7ae862e279b45d58518bf910e979a3c1f0cb2683.zip
(tmm-get-keymap): Include only active menus and menu items.
-rw-r--r--lisp/tmm.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 99931867792..3e0a8e95701 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -395,7 +395,7 @@ element of keymap, an `x-popup-menu' argument, or an element of
395`x-popup-menu' argument (when IN-X-MENU is not-nil). 395`x-popup-menu' argument (when IN-X-MENU is not-nil).
396This function adds the element only if it is not already present. 396This function adds the element only if it is not already present.
397It uses the free variable `tmm-table-undef' to keep undefined keys." 397It uses the free variable `tmm-table-undef' to keep undefined keys."
398 (let (km str cache plist filter visible (event (car elt))) 398 (let (km str cache plist filter visible enable (event (car elt)))
399 (setq elt (cdr elt)) 399 (setq elt (cdr elt))
400 (if (eq elt 'undefined) 400 (if (eq elt 'undefined)
401 (setq tmm-table-undef (cons (cons event nil) tmm-table-undef)) 401 (setq tmm-table-undef (cons (cons event nil) tmm-table-undef))
@@ -436,6 +436,9 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
436 (setq visible (plist-get plist :visible)) 436 (setq visible (plist-get plist :visible))
437 (if visible 437 (if visible
438 (setq km (and (eval visible) km))) 438 (setq km (and (eval visible) km)))
439 (setq enable (plist-get plist :enable))
440 (if enable
441 (setq km (and (eval enable) km)))
439 (and str 442 (and str
440 (consp (nth 3 elt)) 443 (consp (nth 3 elt))
441 (stringp (cdr (nth 3 elt))) ; keyseq cache 444 (stringp (cdr (nth 3 elt))) ; keyseq cache