summaryrefslogtreecommitdiff
path: root/doc/lispref/edebug.texi
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-01-29 07:50:21 -0800
committerGlenn Morris <rgm@gnu.org>2018-01-29 07:50:21 -0800
commit9c2c7b1cdc733ea9277676e43ba458d173491b66 (patch)
tree2013c8951fa2b3006aed36f224193633d08f574c /doc/lispref/edebug.texi
parentea8c0e1b9eaa6651919fb4e039e3fcb5a1fa73db (diff)
parent6415b2d40c13be2c5cd5f797718c391d1c4ce9e6 (diff)
downloademacs-9c2c7b1cdc733ea9277676e43ba458d173491b66.tar.gz
Merge from origin/emacs-26
6415b2d Allow read-passwd to hide characters inserted by C-y. (Secur... 8cb4ffb * etc/PROBLEMS: Document issues with double-buffering. (Bug#... fd10070 * lisp/window.el (window-largest-empty-rectangle): Fix grammar. e1a4403 Minor changes in the Emacs manual 372fda6 Improve the "Files" chapter of the Emacs manual 9afc86d Improve the "Search" chapter of the Emacs manual 22f98b3 * src/indent.c (Findent_to): Doc fix. (Bug#30260) 085ee43 Improve documentation of 'edebug-defun' 4dd1b33 Mention crashes due to Noto Serif Kannada fonts
Diffstat (limited to 'doc/lispref/edebug.texi')
-rw-r--r--doc/lispref/edebug.texi18
1 files changed, 14 insertions, 4 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index 1a883e0f142..0c17e1e72ef 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -209,6 +209,20 @@ session, it runs the hook @code{edebug-setup-hook}, then sets it to
@code{nil}. You can use this to load Edebug specifications
associated with a package you are using, but only when you use Edebug.
+@cindex edebug, failure to instrument
+ If Edebug detects a syntax error while instrumenting, it leaves point
+at the erroneous code and signals an @code{invalid-read-syntax} error.
+@c FIXME? I can't see that it "leaves point at the erroneous code".
+Example:
+
+@example
+@error{} Invalid read syntax: "Expected lambda expression"
+@end example
+
+ One potential reason for such a failure to instrument is that some
+macro definitions are not yet known to Emacs. To work around this,
+load the file which defines the function you are about to instrument.
+
@findex eval-expression @r{(Edebug)}
To remove instrumentation from a definition, simply re-evaluate its
definition in a way that does not instrument. There are two ways of
@@ -216,10 +230,6 @@ evaluating forms that never instrument them: from a file with
@code{load}, and from the minibuffer with @code{eval-expression}
(@kbd{M-:}).
- If Edebug detects a syntax error while instrumenting, it leaves point
-at the erroneous code and signals an @code{invalid-read-syntax} error.
-@c FIXME? I can't see that it "leaves point at the erroneous code".
-
@xref{Edebug Eval}, for other evaluation functions available
inside of Edebug.