mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(popup-menu): Allow user to select nothing.
This commit is contained in:
parent
d196a64d03
commit
9f04f0237a
1 changed files with 5 additions and 4 deletions
|
|
@ -135,10 +135,11 @@ The syntax, more precisely:
|
|||
(let ((menu (make-lucid-menu-keymap (car menu-desc) (cdr menu-desc)))
|
||||
(pos (mouse-pixel-position))
|
||||
answer cmd)
|
||||
(while menu
|
||||
(setq answer (x-popup-menu (list (list (nth 1 pos) (nthcdr 2 pos))
|
||||
(car pos))
|
||||
menu))
|
||||
(while (and menu
|
||||
(setq answer (x-popup-menu (list (list (nth 1 pos)
|
||||
(nthcdr 2 pos))
|
||||
(car pos))
|
||||
menu)))
|
||||
(setq cmd (lookup-key menu (apply 'vector answer)))
|
||||
(setq menu nil)
|
||||
(and cmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue