unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in y-or-n-p?
@ 2005-06-22 15:42 Richard M. Stallman
  2005-06-22 16:39 ` Luc Teirlinck
  2005-06-22 16:55 ` Bug in y-or-n-p? Luc Teirlinck
  0 siblings, 2 replies; 10+ messages in thread
From: Richard M. Stallman @ 2005-06-22 15:42 UTC (permalink / raw)


Can someone please debug this?

    From: "Drew Adams" <drew.adams@oracle.com>

    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.

I think something in the C code is setting last_nonmenu_event
in between the two calls to y-or-n-p.  Could someone please
find out what?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-06-23 16:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-22 15:42 Bug in y-or-n-p? Richard M. Stallman
2005-06-22 16:39 ` Luc Teirlinck
2005-06-22 17:00   ` Drew Adams
2005-06-22 17:18     ` Luc Teirlinck
2005-06-22 17:24       ` Drew Adams
2005-06-23  0:38         ` Juanma Barranquero
2005-06-23 14:20           ` Drew Adams
2005-06-22 17:31     ` Distributor [WAS: Bug in y-or-n-p?] Glenn Morris
2005-06-23 16:54       ` Richard M. Stallman
2005-06-22 16:55 ` Bug in y-or-n-p? Luc Teirlinck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).