changeset 16922:defd7a515c09

(tmm-get-keymap): Recognize explicit lambda expressions as valid.
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Jan 1997 06:25:22 +0000
parents 4b61c355492b
children c7f39edc6320
files lisp/tmm.el
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tmm.el	Thu Jan 23 04:23:12 1997 +0000
+++ b/lisp/tmm.el	Thu Jan 23 06:25:22 1997 +0000
@@ -392,16 +392,18 @@
       (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 @@
 		     (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))))