diff options
| author | Lars Ingebrigtsen | 2019-10-20 23:16:04 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-20 23:46:50 +0200 |
| commit | 78cb3791fa11c95756ee3917c63cfea774f128a2 (patch) | |
| tree | 033aa6db106544a772e158046bd95adf34594180 /doc | |
| parent | b6bf5327908d310fabf7012af6790c7abc2114f4 (diff) | |
| download | emacs-78cb3791fa11c95756ee3917c63cfea774f128a2.tar.gz emacs-78cb3791fa11c95756ee3917c63cfea774f128a2.zip | |
Add a command to toggle an edebug breakpoint
* doc/lispref/edebug.texi (Breakpoints): Document this.
* lisp/emacs-lisp/edebug.el (edebug-disabled-breakpoint): New face
(bug#23472).
(edebug-enabled-breakpoint): Rename.
(edebug--overlay-breakpoints): Use the new face.
(edebug-toggle-disable-breakpoint): New command and keystroke.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/edebug.texi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi index 03efa985ba9..43665ea9ecd 100644 --- a/doc/lispref/edebug.texi +++ b/doc/lispref/edebug.texi | |||
| @@ -497,8 +497,8 @@ Edebug commands for breakpoints: | |||
| 497 | Set a breakpoint at the stop point at or after point | 497 | Set a breakpoint at the stop point at or after point |
| 498 | (@code{edebug-set-breakpoint}). If you use a prefix argument, the | 498 | (@code{edebug-set-breakpoint}). If you use a prefix argument, the |
| 499 | breakpoint is temporary---it turns off the first time it stops the | 499 | breakpoint is temporary---it turns off the first time it stops the |
| 500 | program. An overlay with the @code{edebug-breakpoint} face is put at | 500 | program. An overlay with the @code{edebug-enabled-breakpoint} or |
| 501 | the breakpoint. | 501 | @code{edebug-disabled-breakpoint} faces is put at the breakpoint. |
| 502 | 502 | ||
| 503 | @item u | 503 | @item u |
| 504 | Unset the breakpoint (if any) at the stop point at or after | 504 | Unset the breakpoint (if any) at the stop point at or after |
| @@ -508,6 +508,12 @@ point (@code{edebug-unset-breakpoint}). | |||
| 508 | Unset any breakpoints in the current form | 508 | Unset any breakpoints in the current form |
| 509 | (@code{edebug-unset-breakpoints}). | 509 | (@code{edebug-unset-breakpoints}). |
| 510 | 510 | ||
| 511 | @item D | ||
| 512 | Toggle whether to disable the breakpoint near point | ||
| 513 | (@code{edebug-toggle-disable-breakpoint}). This command is mostly | ||
| 514 | useful if the breakpoint is conditional and it would take some work to | ||
| 515 | recreate the condition. | ||
| 516 | |||
| 511 | @item x @var{condition} @key{RET} | 517 | @item x @var{condition} @key{RET} |
| 512 | Set a conditional breakpoint which stops the program only if | 518 | Set a conditional breakpoint which stops the program only if |
| 513 | evaluating @var{condition} produces a non-@code{nil} value | 519 | evaluating @var{condition} produces a non-@code{nil} value |