emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kill-emacs-query-functions problem with y-or-n-p


From: Drew Adams
Subject: kill-emacs-query-functions problem with y-or-n-p
Date: Sun, 19 Jun 2005 17:16:59 -0700

1. Define these:

(defun foo () (y-or-n-p "foo? "))
(defun bar () (y-or-n-p "bar? "))
(setq kill-emacs-query-functions '(foo bar))

2. Use the menu-bar File > Exit Emacs. 

The question "foo? " correctly appears in a popup menu y/n.

3. Respond `n'  to "foo? ".

4. The question "bar? " should be asked via a popup menu also, but it
   appears instead in the minibuffer.

That is, the user starts with the mouse and menu-bar, but he is
obliged to switch mid-stream to answering with the keyboard.

Note: The problem does not occur in Emacs 20.7.




In GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600)
 of 2005-04-16 on LAPTOP
Distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]