(tmm-prompt): Recognize menu item definitions of the for
`(menu-item ...)' when looking for the position of DEFAULT-ITEM.
This commit is contained in:
parent
95932ad0c6
commit
d0bca3c92e
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,8 @@ Its value should be an event that has a binding in MENU."
|
|||
;; Be careful to count only the elements of MENU
|
||||
;; that actually constitute menu bar items.
|
||||
(if (and (consp (car tail))
|
||||
(stringp (car-safe (cdr (car tail)))))
|
||||
(or (stringp (car-safe (cdr (car tail))))
|
||||
(eq (car-safe (cdr (car tail))) 'menu-item)))
|
||||
(setq index-of-default (1+ index-of-default)))
|
||||
(setq tail (cdr tail)))))
|
||||
(setq history (reverse (mapcar 'car tmm-km-list)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue