all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* stack-trace-on-error vs. debug-on-error.
@ 2005-03-04  9:40 Lute Kamstra
  2005-03-04 10:04 ` Lute Kamstra
  0 siblings, 1 reply; 6+ messages in thread
From: Lute Kamstra @ 2005-03-04  9:40 UTC (permalink / raw)


Does anyone know the difference between stack-trace-on-error and
debug-on-error?

,----[ C-h v stack-trace-on-error RET ]
| stack-trace-on-error's value is nil
| 
| *Non-nil means errors display a backtrace buffer.
| More precisely, this happens for any error that is handled
| by the editor command loop.
| If the value is a list, an error only means to display a backtrace
| if one of its condition symbols appears in the list.
| 
| You can customize this variable.
| 
| Defined in `C source code'.
`----

,----[ C-h v debug-on-error RET ]
| debug-on-error's value is nil
| 
| *Non-nil means enter debugger if an error is signaled.
| Does not apply to errors handled by `condition-case' or those
| matched by `debug-ignored-errors'.
| If the value is a list, an error only means to enter the debugger
| if one of its condition symbols appears in the list.
| When you evaluate an expression interactively, this variable
| is temporarily non-nil if `eval-expression-debug-on-error' is non-nil.
| See also variable `debug-on-quit'.
| 
| You can customize this variable.
| 
| Defined in `C source code'.
`----

On first inspection they seem to do exactly the same.
stack-trace-on-error is not documented in Emacs manual or the Lisp
manual.  Would it be safe to make it an alias of debug-on-error and
mark it as obsolete?

Lute.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: stack-trace-on-error vs. debug-on-error.
@ 2005-03-04 13:47 drkm
  0 siblings, 0 replies; 6+ messages in thread
From: drkm @ 2005-03-04 13:47 UTC (permalink / raw)


> Lute Kamstra wrote:

> drkm <darkman_spam@yahoo.fr> writes:

> >     M-: (setq debug-on-error       nil
> >               stack-trace-on-error t)
> >     C-f
> >     ;; Open a new window and show the stack trace

> >     M-: (setq debug-on-error       t
> >               stack-trace-on-error nil)
> >     C-f
> >     ;; Print "End of buffer" in the echo area

> Yes, and when you do

>     M-: (setq debug-on-error       t
>               debug-ignored-errors nil)
>               stack-trace-on-error nil)
>     C-f

> you enter the debugger.

  Maybe displaying the stack trace would care about
debug-ignored-errors, too?

--drkm



	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-07  1:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04  9:40 stack-trace-on-error vs. debug-on-error Lute Kamstra
2005-03-04 10:04 ` Lute Kamstra
2005-03-04 11:09   ` Lute Kamstra
2005-03-05 16:59   ` Richard Stallman
2005-03-07  1:42     ` Chris Smith
  -- strict thread matches above, loose matches on Subject: below --
2005-03-04 13:47 drkm

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.