* disable debug-on-error in emacs -Q?
@ 2015-12-01 6:47 Stephen Leake
2015-12-01 8:10 ` Andreas Schwab
0 siblings, 1 reply; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 6:47 UTC (permalink / raw)
To: emacs-devel
I'm trying to write a bug report about an error message.
But when I start emacs with -Q, it _always_ enters the debugger when the
error is signaled, even if I explicitly set debug-on-error to nil.
In addition, the Options menu shows debug on error to be disabled.
I can understand why debug-on-error would be set to t with -Q, but why
is setting it nil ignored?
How do I get the error message for the bug report?
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 6:47 disable debug-on-error in emacs -Q? Stephen Leake
@ 2015-12-01 8:10 ` Andreas Schwab
2015-12-01 16:54 ` Stephen Leake
0 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2015-12-01 8:10 UTC (permalink / raw)
To: Stephen Leake; +Cc: emacs-devel
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> But when I start emacs with -Q, it _always_ enters the debugger when the
> error is signaled,
Which version? Where do you get the error? Emacs doesn't behave
differently with -Q in this respect.
> I can understand why debug-on-error would be set to t with -Q, but why
> is setting it nil ignored?
Worksforme. Outside of eval-expression, Emacs respects the setting of
debug-on-error.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 8:10 ` Andreas Schwab
@ 2015-12-01 16:54 ` Stephen Leake
2015-12-01 18:08 ` Michael Heerdegen
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 16:54 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
Andreas Schwab <schwab@linux-m68k.org> writes:
> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>> But when I start emacs with -Q, it _always_ enters the debugger when the
>> error is signaled,
>
> Which version?
I've tried Emacs 24.5 and emacs-25 branch, on Windows/MinGW64 and Debian
on VMWare/Windows.
> Where do you get the error?
I'm testing with:
(+ "foo" 2)
evaluated in the scratch buffer with C-j. Same result evaluating via M-:.
> Emacs doesn't behave differently with -Q in this respect.
It does for me.
With just "emacs", the above puts an error message in *Messages* if
`debug-on-error' is nil.
With "emacs -Q", it opens the *Backtraces* buffer independent of
`debug-on-error'.
I found a workaround; eval the expression once to get *Backtraces*.
Then eval it again without quiting the debugger; that gives the error
message.
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 16:54 ` Stephen Leake
@ 2015-12-01 18:08 ` Michael Heerdegen
2015-12-01 18:37 ` Stephen Leake
2015-12-01 18:10 ` Andreas Schwab
2015-12-01 18:10 ` Noam Postavsky
2 siblings, 1 reply; 12+ messages in thread
From: Michael Heerdegen @ 2015-12-01 18:08 UTC (permalink / raw)
To: emacs-devel
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> evaluated in the scratch buffer with C-j. Same result evaluating via
> M-:.
Are you missing `eval-expression-debug-on-error'?
Michael.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 16:54 ` Stephen Leake
2015-12-01 18:08 ` Michael Heerdegen
@ 2015-12-01 18:10 ` Andreas Schwab
2015-12-01 18:39 ` Stephen Leake
2015-12-01 18:10 ` Noam Postavsky
2 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2015-12-01 18:10 UTC (permalink / raw)
To: Stephen Leake; +Cc: emacs-devel
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> I'm testing with:
>
> (+ "foo" 2)
>
> evaluated in the scratch buffer with C-j. Same result evaluating via M-:.
Worksasdesigned.
C-h v eval-expression-debug-on-error
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 16:54 ` Stephen Leake
2015-12-01 18:08 ` Michael Heerdegen
2015-12-01 18:10 ` Andreas Schwab
@ 2015-12-01 18:10 ` Noam Postavsky
2015-12-01 18:46 ` Stephen Leake
2 siblings, 1 reply; 12+ messages in thread
From: Noam Postavsky @ 2015-12-01 18:10 UTC (permalink / raw)
To: Stephen Leake; +Cc: Andreas Schwab, emacs-devel
On Tue, Dec 1, 2015 at 11:54 AM, Stephen Leake
<stephen_leake@stephe-leake.org> wrote:
> I'm testing with:
>
> (+ "foo" 2)
>
> evaluated in the scratch buffer with C-j. Same result evaluating via M-:.
Both of those methods use eval-expression-debug-on-error rather than
debug-on-error, try
(defun foo ()
(interactive)
(+ "foo" 2))
And then M-x foo, instead.
>> Emacs doesn't behave differently with -Q in this respect.
>
> It does for me.
Presumable you have set eval-expression-debug-on-error to nil in your init file.
> I found a workaround; eval the expression once to get *Backtraces*.
> Then eval it again without quiting the debugger; that gives the error
> message.
Hitting c (debugger-continue) from *Backtraces* should also work.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 18:08 ` Michael Heerdegen
@ 2015-12-01 18:37 ` Stephen Leake
2015-12-01 18:45 ` Michael Heerdegen
2015-12-01 18:46 ` Stephen Leake
0 siblings, 2 replies; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 18:37 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: emacs-devel
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>> evaluated in the scratch buffer with C-j. Same result evaluating via
>> M-:.
>
> Are you missing `eval-expression-debug-on-error'?
That symbol is not defined, so yes, I am missing it.
What would that do for me?
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 18:10 ` Andreas Schwab
@ 2015-12-01 18:39 ` Stephen Leake
0 siblings, 0 replies; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 18:39 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
Andreas Schwab <schwab@linux-m68k.org> writes:
> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>> I'm testing with:
>>
>> (+ "foo" 2)
>>
>> evaluated in the scratch buffer with C-j. Same result evaluating via M-:.
>
> Worksasdesigned.
>
> C-h v eval-expression-debug-on-error
Ah; that is listed in the info node "Entering Debugger on an Error".
Apparently I missed it the first time I read that node.
Thanks for the pointer.
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 18:37 ` Stephen Leake
@ 2015-12-01 18:45 ` Michael Heerdegen
2015-12-01 18:46 ` Stephen Leake
1 sibling, 0 replies; 12+ messages in thread
From: Michael Heerdegen @ 2015-12-01 18:45 UTC (permalink / raw)
To: emacs-devel
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> > Are you missing `eval-expression-debug-on-error'?
>
> That symbol is not defined, so yes, I am missing it.
This user option was introduced in Emacs 21.1, and is defined in
simple.el. I don't understand how it can be undefined for you.
> What would that do for me?
Solve your problem and answer your question.
Michael.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 18:10 ` Noam Postavsky
@ 2015-12-01 18:46 ` Stephen Leake
2015-12-01 20:59 ` Drew Adams
0 siblings, 1 reply; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 18:46 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Andreas Schwab, emacs-devel
Noam Postavsky <npostavs@users.sourceforge.net> writes:
> Presumable you have set eval-expression-debug-on-error to nil in your
> init file.
Yes, I do, in custom-set-variables. I must have done that a _long_ time
ago; I've totally forgotten about it.
>> I found a workaround; eval the expression once to get *Backtraces*.
>> Then eval it again without quiting the debugger; that gives the error
>> message.
>
> Hitting c (debugger-continue) from *Backtraces* should also work.
Ah. I was not aware of that command.
(there's only a million or so Emacs commands to learn ...)
Thanks.
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: disable debug-on-error in emacs -Q?
2015-12-01 18:37 ` Stephen Leake
2015-12-01 18:45 ` Michael Heerdegen
@ 2015-12-01 18:46 ` Stephen Leake
1 sibling, 0 replies; 12+ messages in thread
From: Stephen Leake @ 2015-12-01 18:46 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: emacs-devel
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>>
>>> evaluated in the scratch buffer with C-j. Same result evaluating via
>>> M-:.
>>
>> Are you missing `eval-expression-debug-on-error'?
>
> That symbol is not defined, so yes, I am missing it.
I searched for a function; it seems it is a variable.
--
-- Stephe
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: disable debug-on-error in emacs -Q?
2015-12-01 18:46 ` Stephen Leake
@ 2015-12-01 20:59 ` Drew Adams
0 siblings, 0 replies; 12+ messages in thread
From: Drew Adams @ 2015-12-01 20:59 UTC (permalink / raw)
To: Stephen Leake, Noam Postavsky; +Cc: Andreas Schwab, emacs-devel
> > Hitting c (debugger-continue) from *Backtraces* should also work.
> Ah. I was not aware of that command.
> (there's only a million or so Emacs commands to learn ...)
Ask Emacs: `C-h m' =>
Debugger mode defined in `debug.el' (`debugger-mode'):
Mode for backtrace buffers, selected in debugger.
A line starts with `*' if exiting that frame will call the debugger.
Type b or u to set or remove the `*'.
When in debugger due to frame being exited,
use the r command to override the value
being returned from that frame.
Use M-x debug-on-entry and M-x cancel-debug-on-entry to control
which functions will enter the debugger when called.
Complete list of commands:
key binding
--- -------
0 .. 9 digit-argument
TAB forward-button
RET debug-help-follow
ESC Prefix Command
SPC next-line
- negative-argument
R debugger-record-expression
b debugger-frame
c debugger-continue
d debugger-step-through
e debugger-eval-expression
h describe-mode
j debugger-jump
l debugger-list-functions
q top-level
r debugger-return-value
u debugger-frame-clear
v debugger-toggle-locals
...
This mode runs the hook `debugger-mode-hook', as the final step
during initialization.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-12-01 20:59 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-01 6:47 disable debug-on-error in emacs -Q? Stephen Leake
2015-12-01 8:10 ` Andreas Schwab
2015-12-01 16:54 ` Stephen Leake
2015-12-01 18:08 ` Michael Heerdegen
2015-12-01 18:37 ` Stephen Leake
2015-12-01 18:45 ` Michael Heerdegen
2015-12-01 18:46 ` Stephen Leake
2015-12-01 18:10 ` Andreas Schwab
2015-12-01 18:39 ` Stephen Leake
2015-12-01 18:10 ` Noam Postavsky
2015-12-01 18:46 ` Stephen Leake
2015-12-01 20:59 ` Drew Adams
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.