From: "Richard M. Stallman" <rms@gnu.org>
Subject: Bug in y-or-n-p?
Date: Wed, 22 Jun 2005 11:42:29 -0400 [thread overview]
Message-ID: <E1Dl7Mz-0006s0-LA@fencepost.gnu.org> (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?
next reply other threads:[~2005-06-22 15:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-22 15:42 Richard M. Stallman [this message]
2005-06-22 16:39 ` Bug in y-or-n-p? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Dl7Mz-0006s0-LA@fencepost.gnu.org \
--to=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.