# HG changeset patch # User Stefan Monnier # Date 975792662 0 # Node ID c95b5f588978af2cde41a3ce50ffe9b1284630ba # Parent 5f2ff75f51991462f721f25a015ca1a7562819e9 (tmm-get-keymap): Eval the menu name in `menu-item'. diff -r 5f2ff75f5199 -r c95b5f588978 lisp/tmm.el --- a/lisp/tmm.el Sat Dec 02 21:05:01 2000 +0000 +++ b/lisp/tmm.el Sat Dec 02 21:31:02 2000 +0000 @@ -429,7 +429,7 @@ ((eq (car-safe elt) 'menu-item) (setq plist (cdr-safe (cdr-safe (cdr-safe elt)))) (setq km (nth 2 elt)) - (setq str (nth 1 elt)) + (setq str (eval (nth 1 elt))) (setq filter (plist-get plist :filter)) (if filter (setq km (funcall filter km))) @@ -463,9 +463,7 @@ (setq km nil))) (and km str (or (assoc str tmm-km-list) - (setq tmm-km-list - (cons (cons str (cons event km)) tmm-km-list))) - )))) + (push (cons str (cons event km)) tmm-km-list)))))) (defun tmm-get-keybind (keyseq) "Return the current binding of KEYSEQ, merging prefix definitions.