comparison lispref/debugging.texi @ 63283:911432fbdac4

(Error Debugging): Minor rewording. (Function Debugging): FUNCTION-NAME arg to `cancel-debug-on-entry' is optional.
author Luc Teirlinck <teirllm@auburn.edu>
date Fri, 10 Jun 2005 15:42:16 +0000
parents 49daadbe639b
children e039251ba8e4
comparison
equal deleted inserted replaced
63282:3609dc754369 63283:911432fbdac4
116 the error. The easiest way is usually to set 116 the error. The easiest way is usually to set
117 @code{debug-ignored-errors} to @code{nil}. 117 @code{debug-ignored-errors} to @code{nil}.
118 @end defopt 118 @end defopt
119 119
120 @defopt eval-expression-debug-on-error 120 @defopt eval-expression-debug-on-error
121 If you set this variable to a non-@code{nil} value, then 121 If this variable has a non-@code{nil} value, then
122 @code{debug-on-error} will be set to @code{t} when evaluating with the 122 @code{debug-on-error} is set to @code{t} when evaluating with the
123 command @code{eval-expression}. If 123 command @code{eval-expression}. If
124 @code{eval-expression-debug-on-error} is @code{nil}, then the value of 124 @code{eval-expression-debug-on-error} is @code{nil}, then the value of
125 @code{debug-on-error} is not changed. @xref{Lisp Eval,, Evaluating 125 @code{debug-on-error} is not changed. @xref{Lisp Eval,, Evaluating
126 Emacs-Lisp Expressions, emacs, The GNU Emacs Manual}. 126 Emacs-Lisp Expressions, emacs, The GNU Emacs Manual}.
127 @end defopt 127 @end defopt
265 (if (zerop n) 1 (* n (fact (1- n))))) 265 (if (zerop n) 1 (* n (fact (1- n)))))
266 @end group 266 @end group
267 @end example 267 @end example
268 @end deffn 268 @end deffn
269 269
270 @deffn Command cancel-debug-on-entry function-name 270 @deffn Command cancel-debug-on-entry &optional function-name
271 This function undoes the effect of @code{debug-on-entry} on 271 This function undoes the effect of @code{debug-on-entry} on
272 @var{function-name}. When called interactively, it prompts for 272 @var{function-name}. When called interactively, it prompts for
273 @var{function-name} in the minibuffer. If @var{function-name} is 273 @var{function-name} in the minibuffer. If @var{function-name} is
274 @code{nil} or the empty string, it cancels break-on-entry for all 274 omitted, @code{nil}, or the empty string, it cancels break-on-entry for all
275 functions. 275 functions.
276 276
277 Calling @code{cancel-debug-on-entry} does nothing to a function which is 277 Calling @code{cancel-debug-on-entry} does nothing to a function which is
278 not currently set up to break on entry. It always returns 278 not currently set up to break on entry. It always returns
279 @var{function-name}. 279 @var{function-name}.