From: Stephen Berman <stephen.berman@gmx.net>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
Date: Tue, 26 Jul 2016 23:11:51 +0200 [thread overview]
Message-ID: <87shuwgl48.fsf@gmx.net> (raw)
In-Reply-To: <20160726203450.GA10926@acm.fritz.box> (Alan Mackenzie's message of "Tue, 26 Jul 2016 20:34:50 +0000")
On Tue, 26 Jul 2016 20:34:50 +0000 Alan Mackenzie <acm@muc.de> wrote:
> Hello, Emacs.
>
> Start RC1 with emacs -Q.
>
> M-: debug-on-error returns t.
> C-h v debug-on-error states that the variable has value nil. How can
> this be?
>
> M-: (setq debug-on-error nil) ; in buffer *scratch*, still.
> M-: debug-on-error returns t. How can this be?
>
> Why does this variable behave so strangely? Or am I going mad? Or,
> even both? Should I submit a bug report for this?
It's in the definition of eval-expression:
(let ((old-value (make-symbol "t")) new-value)
;; Bind debug-on-error to something unique so that we can
;; detect when evalled code changes it.
(let ((debug-on-error old-value))
(push (eval (macroexpand-all exp) lexical-binding) values)
(setq new-value debug-on-error))
;; If evalled code has changed the value of debug-on-error,
;; propagate that change to the global binding.
(unless (eq old-value new-value)
(setq debug-on-error new-value))))
eval-last-sexp does essentially the same thing.
Steve Berman
prev parent reply other threads:[~2016-07-26 21:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 20:34 Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error Alan Mackenzie
2016-07-26 20:47 ` Robert Weiner
2016-07-26 20:58 ` Dale Snell
2016-07-26 21:08 ` Sven Joachim
2016-07-26 21:37 ` Robert Weiner
2016-07-26 22:43 ` John Mastro
2016-07-26 21:47 ` Alan Mackenzie
2016-07-26 21:11 ` Stephen Berman [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shuwgl48.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=acm@muc.de \
--cc=emacs-devel@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 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).