]> git.eshelyaron.com Git - emacs.git/commitdiff
(tmm-get-keymap): Eval the menu name in `menu-item'.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 21:31:12 +0000 (21:31 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 21:31:12 +0000 (21:31 +0000)
lisp/ChangeLog
lisp/tmm.el

index cdfb46185476e08e4b10f0a28b1357a6227b51e7..e2bfc29089f5a216f1760caaa9a55711545d7e3b 100644 (file)
@@ -1,5 +1,7 @@
 2000-12-02  Stefan Monnier  <monnier@cs.yale.edu>
 
+       * tmm.el (tmm-get-keymap): Eval the menu name in `menu-item'.
+
        * textmodes/ispell.el (check-ispell-version): Don't use match-beginning
        to check if the match succeeded.
 
index 1db524ff22a60ec19e4afd41bbcb48e9ba5f82dd..4a65efc75bad7eb08ab2d15db73682be76a99bf2 100644 (file)
@@ -429,7 +429,7 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
              ((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 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
          (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.