Add a new edebug-breakpoint face
* doc/lispref/edebug.texi (Breakpoints): Mention it. * lisp/emacs-lisp/edebug.el (edebug-breakpoint): New face.
This commit is contained in:
parent
db1907233c
commit
34744278ba
3 changed files with 10 additions and 2 deletions
|
@ -497,7 +497,8 @@ Edebug commands for breakpoints:
|
|||
Set a breakpoint at the stop point at or after point
|
||||
(@code{edebug-set-breakpoint}). If you use a prefix argument, the
|
||||
breakpoint is temporary---it turns off the first time it stops the
|
||||
program.
|
||||
program. An overlay with the @code{edebug-breakpoint} face is put at
|
||||
the breakpoint.
|
||||
|
||||
@item u
|
||||
Unset the breakpoint (if any) at the stop point at or after
|
||||
|
|
4
etc/NEWS
4
etc/NEWS
|
@ -1462,6 +1462,10 @@ the Elisp manual for documentation of the new mode and its commands.
|
|||
|
||||
** Edebug
|
||||
|
||||
*** New face 'edebug-breakpoint'
|
||||
When setting breakpoints in Edebug, an overlay with this face is
|
||||
placed over the point in question.
|
||||
|
||||
+++
|
||||
*** New command 'edebug-unset-breakpoints'
|
||||
To clear all breakpoints in the current form, the 'U' command in
|
||||
|
|
|
@ -63,6 +63,9 @@
|
|||
"A source-level debugger for Emacs Lisp."
|
||||
:group 'lisp)
|
||||
|
||||
(defface edebug-breakpoint '((t :inherit highlight))
|
||||
"Face used to mark breakpoints."
|
||||
:version "27.1")
|
||||
|
||||
(defcustom edebug-setup-hook nil
|
||||
"Functions to call before edebug is used.
|
||||
|
@ -3226,7 +3229,7 @@ the breakpoint."
|
|||
(let* ((pos (+ start (aref offsets (car breakpoint))))
|
||||
(overlay (make-overlay pos (1+ pos))))
|
||||
(overlay-put overlay 'edebug t)
|
||||
(overlay-put overlay 'face 'highlight))))))
|
||||
(overlay-put overlay 'face 'edebug-breakpoint))))))
|
||||
|
||||
(defun edebug--overlay-breakpoints-remove (start end)
|
||||
(dolist (overlay (overlays-in start end))
|
||||
|
|
Loading…
Add table
Reference in a new issue