aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAlan Mackenzie2015-09-25 11:31:50 +0000
committerAlan Mackenzie2015-09-25 11:31:50 +0000
commitfeddb99afd5692ad7baf2e5675a35b88ff6987ae (patch)
tree7e546fac43df6d92bb717bc6126e66032442d844 /doc
parent0d31eeb796f3388ee4160b7fdff60004ce6847cf (diff)
downloademacs-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.texi22
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
285first instrumented function it encounters. If you prefer to stop only 285first instrumented function it encounters. If you prefer to stop only
286at a break point, or not at all (for example, when gathering coverage 286at a break point, or not at all (for example, when gathering coverage
287data), change the value of @code{edebug-initial-mode} from its default 287data), 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
289values (@pxref{Edebug Options}). Note that you may reenter the same 289values (@pxref{Edebug Options}). You can do this readily with
290Edebug level several times if, for example, an instrumented function 290@kbd{C-x C-a C-m} (@code{edebug-set-initial-mode}):
291is called several times from one command. 291
292@deffn Command edebug-set-initial-mode
293@kindex C-x C-a C-m
294This 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
296mode. You should enter one of the eight keys listed above, which sets
297the corresponding mode.
298@end deffn
299
300Note that you may reenter the same Edebug level several times if, for
301example, an instrumented function is called several times from one
302command.
292 303
293While executing or tracing, you can interrupt the execution by typing 304While executing or tracing, you can interrupt the execution by typing
294any Edebug command. Edebug stops the program at the next stop point and 305any 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
1568The default value is @code{step}. 1579The default value is @code{step}. This variable can be set
1580interactively 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