X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d2fc7e3d0f6f57f962cbd94df3bf4fd15a37bb68..94bc79845c7bec68561e086d7494749a40e48c23:/doc/lispref/debugging.texi diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index ed146453df..9466f21a56 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990-1994, 1998-1999, 2001-2011 Free Software Foundation, Inc. +@c Copyright (C) 1990-1994, 1998-1999, 2001-2012 Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../../info/debugging @node Debugging, Read and Print, Advising Functions, Top @@ -306,6 +306,16 @@ and it is wise to go back to the backtrace buffer and exit the debugger the debugger gets out of the recursive edit and kills the backtrace buffer. + When the debugger has been entered, the @code{debug-on-error} +variable is temporarily set according to +@code{eval-expression-debug-on-error}. If the latter variable is +non-@code{nil}, @code{debug-on-error} will temporarily be set to +@code{t}. This means that any further errors that occur while doing a +debugging session will (by default) trigger another backtrace. If +this is not want you want, you can either set +@code{eval-expression-debug-on-error} to @code{nil}, or set +@code{debug-on-error} to @code{nil} in @code{debugger-mode-hook}. + @cindex current stack frame The backtrace buffer shows you the functions that are executing and their argument values. It also allows you to specify a stack frame by @@ -586,25 +596,6 @@ forms are elided. @end smallexample @end deffn -@ignore @c Not worth mentioning -@defopt stack-trace-on-error -@cindex stack trace -This variable controls whether Lisp automatically displays a -backtrace buffer after every error that is not handled. A quit signal -counts as an error for this variable. If it is non-@code{nil} then a -backtrace is shown in a pop-up buffer named @samp{*Backtrace*} on every -error. If it is @code{nil}, then a backtrace is not shown. - -When a backtrace is shown, that buffer is not selected. If either -@code{debug-on-quit} or @code{debug-on-error} is also non-@code{nil}, then -a backtrace is shown in one buffer, and the debugger is popped up in -another buffer with its own backtrace. - -We consider this feature to be obsolete and superseded by the debugger -itself. -@end defopt -@end ignore - @defvar debug-on-next-call @cindex @code{eval}, and debugging @cindex @code{apply}, and debugging