]> git.eshelyaron.com Git - emacs.git/commitdiff
(tmm-get-keymap): Recognize explicit lambda expressions as valid.
authorRichard M. Stallman <rms@gnu.org>
Thu, 23 Jan 1997 06:25:22 +0000 (06:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 23 Jan 1997 06:25:22 +0000 (06:25 +0000)
lisp/tmm.el

index b016e8231bf103202ddc213e70ccd42f56d705c3..d294f41d4d27c9e7fc46bd76b3a62aedc385341f 100644 (file)
@@ -392,16 +392,18 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
       (or
        (assoc event tmm-table-undef)
        (and (if (listp elt)
-               (keymapp elt)
+               (or (keymapp elt) (eq (car elt) 'lambda))
              (fboundp elt))
            (setq km elt))
        (and (if (listp (cdr-safe elt))
-               (keymapp (cdr-safe elt))
+               (or (keymapp (cdr-safe elt))
+                   (eq (car (cdr-safe elt)) 'lambda))
              (fboundp (cdr-safe elt)))
            (setq km (cdr elt))
            (and (stringp (car elt)) (setq str (car elt))))
        (and (if (listp (cdr-safe (cdr-safe elt)))
-               (keymapp (cdr-safe (cdr-safe elt)))
+               (or (keymapp (cdr-safe (cdr-safe elt)))
+                   (eq (car (cdr-safe (cdr-safe elt))) 'lambda))
              (fboundp (cdr-safe (cdr-safe elt))))
            (setq km (cdr (cdr elt)))
            (and (stringp (car elt)) (setq str (car elt)))
@@ -410,7 +412,8 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
                     (setq cache (cdr (car (cdr elt))))
                     cache (setq str (concat str cache))) str))
        (and (if (listp (cdr-safe (cdr-safe (cdr-safe elt))))
-               (keymapp (cdr-safe (cdr-safe (cdr-safe elt))))
+               (or (keymapp (cdr-safe (cdr-safe (cdr-safe elt))))
+                   (eq (car (cdr-safe (cdr-safe (cdr-safe elt)))) 'lambda))
              (fboundp (cdr-safe (cdr-safe (cdr-safe elt)))))
                                        ; New style of easy-menu
            (setq km (cdr (cdr (cdr elt))))