]> git.eshelyaron.com Git - emacs.git/commitdiff
tmm.el (tmm-get-keymap): Check with symbolp before passing
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 2 Apr 2010 09:44:50 +0000 (11:44 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 2 Apr 2010 09:44:50 +0000 (11:44 +0200)
value to fboundp, it may not be a symbol.

lisp/ChangeLog
lisp/tmm.el

index 7a9fae9f4129ea284c955e21d823aaf51f6ade37..1bbc73872ab25a5a3f0365f3aae92d5bbfe73ae1 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-02  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * tmm.el (tmm-get-keymap): Check with symbolp before passing
+       value to fboundp, it may not be a symbol.
+
 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
 
        * cus-edit.el (custom-buffer-sort-alphabetically): Update
index f4ae3c110d55efacf64741dccc585aa0644246d5..97f017e2352657ebeb80a957c0d6609dd7c1899e 100644 (file)
@@ -452,20 +452,21 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
       (unless (assoc event tmm-table-undef)
        (cond ((if (listp elt)
                   (or (keymapp elt) (eq (car elt) 'lambda))
-                (fboundp elt))
+                (and (symbolp elt) (fboundp elt)))
               (setq km elt))
 
              ((if (listp (cdr-safe elt))
                   (or (keymapp (cdr-safe elt))
                       (eq (car (cdr-safe elt)) 'lambda))
-                (fboundp (cdr-safe elt)))
+                (and (symbolp (cdr-safe elt)) (fboundp (cdr-safe elt))))
               (setq km (cdr elt))
               (and (stringp (car elt)) (setq str (car elt))))
 
              ((if (listp (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))))
+                (and (symbolp (cdr-safe (cdr-safe elt))
+                              (fboundp (cdr-safe (cdr-safe elt))))))
               (setq km (cddr elt))
               (and (stringp (car elt)) (setq str (car elt)))
               (and str
@@ -499,7 +500,8 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
              ((if (listp (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)))))
+                (and (symbolp (cdr-safe (cdr-safe (cdr-safe elt))))
+                     (fboundp (cdr-safe (cdr-safe (cdr-safe elt))))))
                                         ; New style of easy-menu
               (setq km (cdr (cddr elt)))
               (and (stringp (car elt)) (setq str (car elt)))