aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-05-29 15:50:01 +0000
committerGerd Moellmann2000-05-29 15:50:01 +0000
commitd0bca3c92e730c1d294ecd079997423413126e77 (patch)
tree5c90b019f6390428ebf5a7de2dcc338393ef2045
parent95932ad0c6e02b5cfd4e699fdce6144950a57ae4 (diff)
downloademacs-d0bca3c92e730c1d294ecd079997423413126e77.tar.gz
emacs-d0bca3c92e730c1d294ecd079997423413126e77.zip
(tmm-prompt): Recognize menu item definitions of the for
`(menu-item ...)' when looking for the position of DEFAULT-ITEM.
-rw-r--r--lisp/tmm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 0db56d4c1d4..cd674ce4b8f 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -193,7 +193,8 @@ Its value should be an event that has a binding in MENU."
193 ;; Be careful to count only the elements of MENU 193 ;; Be careful to count only the elements of MENU
194 ;; that actually constitute menu bar items. 194 ;; that actually constitute menu bar items.
195 (if (and (consp (car tail)) 195 (if (and (consp (car tail))
196 (stringp (car-safe (cdr (car tail))))) 196 (or (stringp (car-safe (cdr (car tail))))
197 (eq (car-safe (cdr (car tail))) 'menu-item)))
197 (setq index-of-default (1+ index-of-default))) 198 (setq index-of-default (1+ index-of-default)))
198 (setq tail (cdr tail))))) 199 (setq tail (cdr tail)))))
199 (setq history (reverse (mapcar 'car tmm-km-list))) 200 (setq history (reverse (mapcar 'car tmm-km-list)))