aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/tmm.el10
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7a9fae9f412..1bbc73872ab 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-04-02 Jan Djärv <jan.h.d@swipnet.se>
2
3 * tmm.el (tmm-get-keymap): Check with symbolp before passing
4 value to fboundp, it may not be a symbol.
5
12010-03-31 Chong Yidong <cyd@stupidchicken.com> 62010-03-31 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * cus-edit.el (custom-buffer-sort-alphabetically): Update 8 * cus-edit.el (custom-buffer-sort-alphabetically): Update
diff --git a/lisp/tmm.el b/lisp/tmm.el
index f4ae3c110d5..97f017e2352 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -452,20 +452,21 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
452 (unless (assoc event tmm-table-undef) 452 (unless (assoc event tmm-table-undef)
453 (cond ((if (listp elt) 453 (cond ((if (listp elt)
454 (or (keymapp elt) (eq (car elt) 'lambda)) 454 (or (keymapp elt) (eq (car elt) 'lambda))
455 (fboundp elt)) 455 (and (symbolp elt) (fboundp elt)))
456 (setq km elt)) 456 (setq km elt))
457 457
458 ((if (listp (cdr-safe elt)) 458 ((if (listp (cdr-safe elt))
459 (or (keymapp (cdr-safe elt)) 459 (or (keymapp (cdr-safe elt))
460 (eq (car (cdr-safe elt)) 'lambda)) 460 (eq (car (cdr-safe elt)) 'lambda))
461 (fboundp (cdr-safe elt))) 461 (and (symbolp (cdr-safe elt)) (fboundp (cdr-safe elt))))
462 (setq km (cdr elt)) 462 (setq km (cdr elt))
463 (and (stringp (car elt)) (setq str (car elt)))) 463 (and (stringp (car elt)) (setq str (car elt))))
464 464
465 ((if (listp (cdr-safe (cdr-safe elt))) 465 ((if (listp (cdr-safe (cdr-safe elt)))
466 (or (keymapp (cdr-safe (cdr-safe elt))) 466 (or (keymapp (cdr-safe (cdr-safe elt)))
467 (eq (car (cdr-safe (cdr-safe elt))) 'lambda)) 467 (eq (car (cdr-safe (cdr-safe elt))) 'lambda))
468 (fboundp (cdr-safe (cdr-safe elt)))) 468 (and (symbolp (cdr-safe (cdr-safe elt))
469 (fboundp (cdr-safe (cdr-safe elt))))))
469 (setq km (cddr elt)) 470 (setq km (cddr elt))
470 (and (stringp (car elt)) (setq str (car elt))) 471 (and (stringp (car elt)) (setq str (car elt)))
471 (and str 472 (and str
@@ -499,7 +500,8 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
499 ((if (listp (cdr-safe (cdr-safe (cdr-safe elt)))) 500 ((if (listp (cdr-safe (cdr-safe (cdr-safe elt))))
500 (or (keymapp (cdr-safe (cdr-safe (cdr-safe elt)))) 501 (or (keymapp (cdr-safe (cdr-safe (cdr-safe elt))))
501 (eq (car (cdr-safe (cdr-safe (cdr-safe elt)))) 'lambda)) 502 (eq (car (cdr-safe (cdr-safe (cdr-safe elt)))) 'lambda))
502 (fboundp (cdr-safe (cdr-safe (cdr-safe elt))))) 503 (and (symbolp (cdr-safe (cdr-safe (cdr-safe elt))))
504 (fboundp (cdr-safe (cdr-safe (cdr-safe elt))))))
503 ; New style of easy-menu 505 ; New style of easy-menu
504 (setq km (cdr (cddr elt))) 506 (setq km (cdr (cddr elt)))
505 (and (stringp (car elt)) (setq str (car elt))) 507 (and (stringp (car elt)) (setq str (car elt)))