* Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
@ 2016-07-26 20:34 Alan Mackenzie
2016-07-26 20:47 ` Robert Weiner
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Alan Mackenzie @ 2016-07-26 20:34 UTC (permalink / raw)
To: emacs-devel
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?
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
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
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Robert Weiner @ 2016-07-26 20:47 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 326 bytes --]
On Tue, Jul 26, 2016 at 4:34 PM, Alan Mackenzie <acm@muc.de> wrote:
>
> M-: (setq debug-on-error nil) ; in buffer *scratch*, still.
> M-: debug-on-error returns t. How can this be?
>
Good catch. This problem has been there since at least 25.0.94 since I am
running that and it exhibits it as well.
Bob
[-- Attachment #2: Type: text/html, Size: 1221 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
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:11 ` Stephen Berman
3 siblings, 0 replies; 8+ messages in thread
From: Dale Snell @ 2016-07-26 20:58 UTC (permalink / raw)
To: emacs-devel
On Tue, 26 Jul 2016 20:34:50 +0000, in message
20160726203450.GA10926@acm.fritz.box, Alan Mackenzie wrote:
>
> Why does this variable behave so strangely? Or am I going mad? Or,
> even both? Should I submit a bug report for this?
>
Hello Alan,
Whatever is causing this, it's not new with RC1. I get the same
results with 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9)
--Dale
--
“Insanity is part of the times! You must embrace the madness, let
it fire you.” --Londo Mollari, Babylon 5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
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 21:47 ` Alan Mackenzie
2016-07-26 21:11 ` Stephen Berman
3 siblings, 2 replies; 8+ messages in thread
From: Sven Joachim @ 2016-07-26 21:08 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
On 2016-07-26 20:34 +0000, Alan Mackenzie 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?
See the documentation for debug-on-error:
,----
| debug-on-error is a variable defined in ‘C source code’.
| Its value is nil
|
| Documentation:
| [...]
| When you evaluate an expression interactively, this variable
| is temporarily non-nil if ‘eval-expression-debug-on-error’ is non-nil.
`----
> Why does this variable behave so strangely? Or am I going mad? Or,
> even both? Should I submit a bug report for this?
Everything works as designed, AFAICS (by default,
eval-expression-debug-on-error is t).
Cheers,
Sven
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
2016-07-26 20:34 Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error Alan Mackenzie
` (2 preceding siblings ...)
2016-07-26 21:08 ` Sven Joachim
@ 2016-07-26 21:11 ` Stephen Berman
3 siblings, 0 replies; 8+ messages in thread
From: Stephen Berman @ 2016-07-26 21:11 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
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
1 sibling, 1 reply; 8+ messages in thread
From: Robert Weiner @ 2016-07-26 21:37 UTC (permalink / raw)
To: Sven Joachim; +Cc: Alan Mackenzie, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
On Tue, Jul 26, 2016 at 5:08 PM, Sven Joachim <svenjoac@gmx.de> wrote:
> Everything works as designed, AFAICS (by default,
> eval-expression-debug-on-error is t).
>
So how can one get a look at the top-level value of debug-on-error when
eval-expression-debug-on-error is set to t?
Bob
[-- Attachment #2: Type: text/html, Size: 934 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
2016-07-26 21:08 ` Sven Joachim
2016-07-26 21:37 ` Robert Weiner
@ 2016-07-26 21:47 ` Alan Mackenzie
1 sibling, 0 replies; 8+ messages in thread
From: Alan Mackenzie @ 2016-07-26 21:47 UTC (permalink / raw)
To: Sven Joachim; +Cc: emacs-devel
Hello, Sven.
On Tue, Jul 26, 2016 at 11:08:17PM +0200, Sven Joachim wrote:
> On 2016-07-26 20:34 +0000, Alan Mackenzie 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?
> See the documentation for debug-on-error:
> ,----
> | debug-on-error is a variable defined in ‘C source code’.
> | Its value is nil
> |
> | Documentation:
> | [...]
> | When you evaluate an expression interactively, this variable
> | is temporarily non-nil if ‘eval-expression-debug-on-error’ is non-nil.
> `----
> > Why does this variable behave so strangely? Or am I going mad? Or,
> > even both? Should I submit a bug report for this?
> Everything works as designed, AFAICS (by default,
> eval-expression-debug-on-error is t).
Ah. I see this now. Thanks for clearing it up!
> Cheers,
> Sven
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs 25.1 RC1: incipient insanity, or can't set debug-on-error.
2016-07-26 21:37 ` Robert Weiner
@ 2016-07-26 22:43 ` John Mastro
0 siblings, 0 replies; 8+ messages in thread
From: John Mastro @ 2016-07-26 22:43 UTC (permalink / raw)
To: rswgnu; +Cc: Alan Mackenzie, Sven Joachim, emacs-devel
Robert Weiner <rsw@gnu.org> wrote:
> On Tue, Jul 26, 2016 at 5:08 PM, Sven Joachim <svenjoac@gmx.de> wrote:
>>
>> Everything works as designed, AFAICS (by default,
>> eval-expression-debug-on-error is t).
>
>
> So how can one get a look at the top-level value of debug-on-error when
> eval-expression-debug-on-error is set to t?
C-h v debug-on-error RET should work (and that's why its
value was different in Alan's experiment).
John
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-07-26 22:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.