diff options
| author | Alan Mackenzie | 2015-09-25 11:31:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2015-09-25 11:31:50 +0000 |
| commit | feddb99afd5692ad7baf2e5675a35b88ff6987ae (patch) | |
| tree | 7e546fac43df6d92bb717bc6126e66032442d844 /doc | |
| parent | 0d31eeb796f3388ee4160b7fdff60004ce6847cf (diff) | |
| download | emacs-feddb99afd5692ad7baf2e5675a35b88ff6987ae.tar.gz emacs-feddb99afd5692ad7baf2e5675a35b88ff6987ae.zip | |
Resurrect edebug-set-initial-mode, repurposing it to set the global mode.
lisp/emacs-lisp/edebug.el (edebug-initial-mode-alist): Uncomment, and
amend to match current modes and functions.
(edebug-set-initial-mode): Uncomment and change from setting a defun's
`edebug-initial-mode''s property to setting the variable
`edebug-initial-mode'.
(top level): Create new binding C-x C-a C-m for
`edebug-set-initial-mode'.
doc/lispref/edebug.texi (Edebug Execution Modes): document
`edebug-set-initial-mode' and its new key binding.
(Edebug Options): Mention the new command in the pertinent place.
etc/NEWS: Write entry for this change.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/edebug.texi | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi index e086be303fc..96bb03b34c0 100644 --- a/doc/lispref/edebug.texi +++ b/doc/lispref/edebug.texi | |||
| @@ -285,10 +285,21 @@ When you enter a new Edebug level, Edebug will normally stop at the | |||
| 285 | first instrumented function it encounters. If you prefer to stop only | 285 | first instrumented function it encounters. If you prefer to stop only |
| 286 | at a break point, or not at all (for example, when gathering coverage | 286 | at a break point, or not at all (for example, when gathering coverage |
| 287 | data), change the value of @code{edebug-initial-mode} from its default | 287 | data), change the value of @code{edebug-initial-mode} from its default |
| 288 | @code{step} to @code{go} or @code{Go-nonstop}, or one of its other | 288 | @code{step} to @code{go}, or @code{Go-nonstop}, or one of its other |
| 289 | values (@pxref{Edebug Options}). Note that you may reenter the same | 289 | values (@pxref{Edebug Options}). You can do this readily with |
| 290 | Edebug level several times if, for example, an instrumented function | 290 | @kbd{C-x C-a C-m} (@code{edebug-set-initial-mode}): |
| 291 | is called several times from one command. | 291 | |
| 292 | @deffn Command edebug-set-initial-mode | ||
| 293 | @kindex C-x C-a C-m | ||
| 294 | This command, bound to @kbd{C-x C-a C-m}, sets | ||
| 295 | @code{edebug-initial-mode}. It prompts you for a key to indicate the | ||
| 296 | mode. You should enter one of the eight keys listed above, which sets | ||
| 297 | the corresponding mode. | ||
| 298 | @end deffn | ||
| 299 | |||
| 300 | Note that you may reenter the same Edebug level several times if, for | ||
| 301 | example, an instrumented function is called several times from one | ||
| 302 | command. | ||
| 292 | 303 | ||
| 293 | While executing or tracing, you can interrupt the execution by typing | 304 | While executing or tracing, you can interrupt the execution by typing |
| 294 | any Edebug command. Edebug stops the program at the next stop point and | 305 | any Edebug command. Edebug stops the program at the next stop point and |
| @@ -1565,7 +1576,8 @@ mode for Edebug when it is first activated. Possible values are | |||
| 1565 | @code{step}, @code{next}, @code{go}, @code{Go-nonstop}, @code{trace}, | 1576 | @code{step}, @code{next}, @code{go}, @code{Go-nonstop}, @code{trace}, |
| 1566 | @code{Trace-fast}, @code{continue}, and @code{Continue-fast}. | 1577 | @code{Trace-fast}, @code{continue}, and @code{Continue-fast}. |
| 1567 | 1578 | ||
| 1568 | The default value is @code{step}. | 1579 | The default value is @code{step}. This variable can be set |
| 1580 | interactively with @kbd{C-x C-a C-m} (@code{edebug-set-initial-mode}). | ||
| 1569 | @xref{Edebug Execution Modes}. | 1581 | @xref{Edebug Execution Modes}. |
| 1570 | @end defopt | 1582 | @end defopt |
| 1571 | 1583 | ||