[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r117364: * doc/lispref/debugging.texi (Function D
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs-24 r117364: * doc/lispref/debugging.texi (Function Debugging, Debugger Commands): |
Date: |
Tue, 08 Jul 2014 18:24:51 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117364
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17902
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Tue 2014-07-08 14:24:39 -0400
message:
* doc/lispref/debugging.texi (Function Debugging, Debugger Commands):
Update debug-on-entry w.r.t behavior after redefinitions.
modified:
doc/lispref/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-6155
doc/lispref/debugging.texi
debugging.texi-20091113204419-o5vbwnq5f7feedwu-6171
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2014-06-29 02:33:50 +0000
+++ b/doc/lispref/ChangeLog 2014-07-08 18:24:39 +0000
@@ -1,3 +1,8 @@
+2014-07-08 Stefan Monnier <address@hidden>
+
+ * debugging.texi (Function Debugging, Debugger Commands):
+ Update debug-on-entry w.r.t behavior after redefinitions (bug#17902).
+
2014-06-29 Glenn Morris <address@hidden>
* help.texi (Help Functions): "Online" help doesn't mean what it
=== modified file 'doc/lispref/debugging.texi'
--- a/doc/lispref/debugging.texi 2014-02-13 08:26:01 +0000
+++ b/doc/lispref/debugging.texi 2014-07-08 18:24:39 +0000
@@ -226,9 +226,7 @@
@deffn Command debug-on-entry function-name
This function requests @var{function-name} to invoke the debugger each
-time it is called. It works by inserting the form
address@hidden(implement-debug-on-entry)} into the function definition as the
-first form.
+time it is called.
Any function or macro defined as Lisp code may be set to break on
entry, regardless of whether it is interpreted code or compiled code.
@@ -244,11 +242,6 @@
up to invoke the debugger on entry, @code{debug-on-entry} does nothing.
@code{debug-on-entry} always returns @var{function-name}.
address@hidden:} if you redefine a function after using
address@hidden on it, the code to enter the debugger is
-discarded by the redefinition. In effect, redefining the function
-cancels the break-on-entry feature for that function.
-
Here's an example to illustrate use of this function:
@example
@@ -277,12 +270,6 @@
------ Buffer: *Backtrace* ------
@end group
address@hidden
-(symbol-function 'fact)
- @result{} (lambda (n)
- (debug (quote debug))
- (if (zerop n) 1 (* n (fact (1- n)))))
address@hidden group
@end example
@end deffn
@@ -461,9 +448,7 @@
@item l
Display a list of functions that will invoke the debugger when called.
This is a list of functions that are set to break on entry by means of
address@hidden @strong{Warning:} if you redefine such a
-function and thus cancel the effect of @code{debug-on-entry}, it may
-erroneously show up in this list.
address@hidden
@item v
Toggle the display of local variables of the current stack frame.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r117364: * doc/lispref/debugging.texi (Function Debugging, Debugger Commands):,
Stefan Monnier <=