Mercurial > emacs
changeset 8051:a320525f4d8f
(popup-menu): Allow user to select nothing.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 25 Jun 1994 01:42:43 +0000 |
parents | bef2c11470f8 |
children | 18870eff0f54 |
files | lisp/emacs-lisp/lmenu.el |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lmenu.el Sat Jun 25 01:20:11 1994 +0000 +++ b/lisp/emacs-lisp/lmenu.el Sat Jun 25 01:42:43 1994 +0000 @@ -135,10 +135,11 @@ (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