From: Richard Stallman <rms@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; catching C-x 3 in yes-or-no-p
Date: Mon, 21 Jan 2008 15:30:23 -0500 [thread overview]
Message-ID: <E1JH3Hj-0004MS-HQ@fencepost.gnu.org> (raw)
In-Reply-To: <4793E3D1.4000502@gmail.com> (lennart.borgman@gmail.com)
and eval this function in the *scratch* buffer
(defun protected-yes-or-no-p ()
(condition-case err
(yes-or-no-p "Prompt ")
(error
(lwarn 'got-error :warning "%s" err))))
and call it. When the prompt is visible type
C-x 3
I think I figured out what happened.
I suspect that you called it with M-:, right?
That binds debug-on-error to t.
yes-or-no-p starts a recursive editing loop, and when there are no
handlers _inside_ the recursive editing loop and debug-on-error is t,
errors invoke the debugger. So this error invokes the debugger.
I think that qualifies as a bug. Perhaps the right fix is that
recursive editin levels should bind debug-on-error to nil.
Does anyone see a problem in that fix?
prev parent reply other threads:[~2008-01-21 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-21 0:14 23.0.50; catching C-x 3 in yes-or-no-p Lennart Borgman (gmail)
2008-01-21 20:30 ` Richard Stallman [this message]
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=E1JH3Hj-0004MS-HQ@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=lennart.borgman@gmail.com \
/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.