diff options
| author | Gemini Lasswell | 2017-10-14 09:13:36 -0700 |
|---|---|---|
| committer | Gemini Lasswell | 2017-10-22 10:47:50 -0700 |
| commit | e07cf691decf01dc3cbe19a413708570b95bc41b (patch) | |
| tree | 0500a27e83dcef7fdf5bb846562e9d92c67fbf58 /doc | |
| parent | 9c8f8de0f3e00d4f862fa5c17e3b46fcd23e5f7f (diff) | |
| download | emacs-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.texi | 23 |
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 | |||
| 1705 | call the new functions in place of its own for that definition. | 1705 | call 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 |
| 1709 | An abnormal hook run by Edebug after it wraps the body of a definition | 1709 | A function run by Edebug after it wraps the body of a definition |
| 1710 | or closure. After Edebug has initialized its own data, each function | 1710 | or closure. After Edebug has initialized its own data, this function |
| 1711 | is called with one argument, the symbol associated with the | 1711 | is called with one argument, the symbol associated with the |
| 1712 | definition, which may be the actual symbol defined or one generated by | 1712 | definition, which may be the actual symbol defined or one generated by |
| 1713 | Edebug. This hook may be used to set the @code{edebug-behavior} | 1713 | Edebug. This function may be used to set the @code{edebug-behavior} |
| 1714 | symbol property of each definition instrumented by Edebug. | 1714 | symbol property of each definition instrumented by Edebug. |
| 1715 | |||
| 1716 | By default @code{edebug-new-definition-functions} contains | ||
| 1717 | @code{edebug-announce-definition} which prints a message each time a | ||
| 1718 | definition is instrumented. If you are instrumenting a lot of code | ||
| 1719 | and 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 |
| 1724 | An abnormal hook run by Edebug after it instruments a form. | 1718 | To inspect or modify Edebug's instrumentation before it is used, set |
| 1725 | Each function is called with one argument, a form which has | 1719 | this variable to a function which takes one argument, an instrumented |
| 1726 | just been instrumented by Edebug. | 1720 | top-level form, and returns either the same or a replacement form, |
| 1721 | which Edebug will then use as the final result of instrumentation. | ||
| 1727 | @end defopt | 1722 | @end defopt |