aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGemini Lasswell2017-10-14 09:13:36 -0700
committerGemini Lasswell2017-10-22 10:47:50 -0700
commite07cf691decf01dc3cbe19a413708570b95bc41b (patch)
tree0500a27e83dcef7fdf5bb846562e9d92c67fbf58 /doc
parent9c8f8de0f3e00d4f862fa5c17e3b46fcd23e5f7f (diff)
downloademacs-e07cf691decf01dc3cbe19a413708570b95bc41b.tar.gz
emacs-e07cf691decf01dc3cbe19a413708570b95bc41b.zip
Change Edebug's behavior-changing hooks to variables
* lisp/emacs-lisp/edebug.el (edebug-after-instrumentation-functions) (edebug-new-definition-functions): Deleted. (edebug-after-instrumentation-function) (edebug-new-definition-function): New variables. (edebug-behavior-alist): Update docstring. (edebug-read-and-maybe-wrap-form1, edebug-make-form-wrapper): Use new variables. * lisp/emacs-lisp/testcover.el (testcover-start) (testcover-this-defun): Use `edebug-after-instrumentation-function' and `edebug-new-definition-function'. (testcover-after-instrumentation): Return passed form. (testcover-init-definition): Use argument instead of `edebug-def-name'. * doc/lispref/edebug.texi (Edebug Options): Replace descriptions of `edebug-after-instrumentation-functions' and `edebug-new-definition-functions' with `edebug-after-instrumentation-function' and `edebug-new-definition-function'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/edebug.texi23
1 files changed, 9 insertions, 14 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index 94d61480f10..651bfacb4cf 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -1705,23 +1705,18 @@ instrumented definition to the key of the new entry, and Edebug will
1705call the new functions in place of its own for that definition. 1705call the new functions in place of its own for that definition.
1706@end defopt 1706@end defopt
1707 1707
1708@defopt edebug-new-definition-functions 1708@defopt edebug-new-definition-function
1709An abnormal hook run by Edebug after it wraps the body of a definition 1709A function run by Edebug after it wraps the body of a definition
1710or closure. After Edebug has initialized its own data, each function 1710or closure. After Edebug has initialized its own data, this function
1711is called with one argument, the symbol associated with the 1711is called with one argument, the symbol associated with the
1712definition, which may be the actual symbol defined or one generated by 1712definition, which may be the actual symbol defined or one generated by
1713Edebug. This hook may be used to set the @code{edebug-behavior} 1713Edebug. This function may be used to set the @code{edebug-behavior}
1714symbol property of each definition instrumented by Edebug. 1714symbol property of each definition instrumented by Edebug.
1715
1716By default @code{edebug-new-definition-functions} contains
1717@code{edebug-announce-definition} which prints a message each time a
1718definition is instrumented. If you are instrumenting a lot of code
1719and find the messages excessive, remove
1720@code{edebug-announce-definition}.
1721@end defopt 1715@end defopt
1722 1716
1723@defopt edebug-after-instrumentation-functions 1717@defopt edebug-after-instrumentation-function
1724An abnormal hook run by Edebug after it instruments a form. 1718To inspect or modify Edebug's instrumentation before it is used, set
1725Each function is called with one argument, a form which has 1719this variable to a function which takes one argument, an instrumented
1726just been instrumented by Edebug. 1720top-level form, and returns either the same or a replacement form,
1721which Edebug will then use as the final result of instrumentation.
1727@end defopt 1722@end defopt