aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-20 14:09:36 +0200
committerLars Ingebrigtsen2019-10-20 14:09:36 +0200
commit34744278ba44d78d2a3718135ac20f2dada303e4 (patch)
tree84f965b458fa6e6dc0362eb7504740e993448eba
parentdb1907233c8ecc7ca562e365125c24d60bb40c54 (diff)
downloademacs-34744278ba44d78d2a3718135ac20f2dada303e4.tar.gz
emacs-34744278ba44d78d2a3718135ac20f2dada303e4.zip
Add a new edebug-breakpoint face
* doc/lispref/edebug.texi (Breakpoints): Mention it. * lisp/emacs-lisp/edebug.el (edebug-breakpoint): New face.
-rw-r--r--doc/lispref/edebug.texi3
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/emacs-lisp/edebug.el5
3 files changed, 10 insertions, 2 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index e081833e242..03efa985ba9 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -497,7 +497,8 @@ Edebug commands for breakpoints:
497Set a breakpoint at the stop point at or after point 497Set 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
499breakpoint is temporary---it turns off the first time it stops the 499breakpoint is temporary---it turns off the first time it stops the
500program. 500program. An overlay with the @code{edebug-breakpoint} face is put at
501the breakpoint.
501 502
502@item u 503@item u
503Unset the breakpoint (if any) at the stop point at or after 504Unset the breakpoint (if any) at the stop point at or after
diff --git a/etc/NEWS b/etc/NEWS
index aec27b93613..46ed40dfcba 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1462,6 +1462,10 @@ the Elisp manual for documentation of the new mode and its commands.
1462 1462
1463** Edebug 1463** Edebug
1464 1464
1465*** New face 'edebug-breakpoint'
1466When setting breakpoints in Edebug, an overlay with this face is
1467placed over the point in question.
1468
1465+++ 1469+++
1466*** New command 'edebug-unset-breakpoints' 1470*** New command 'edebug-unset-breakpoints'
1467To clear all breakpoints in the current form, the 'U' command in 1471To clear all breakpoints in the current form, the 'U' command in
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index f59123094ac..a3ab23c1a1e 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -63,6 +63,9 @@
63 "A source-level debugger for Emacs Lisp." 63 "A source-level debugger for Emacs Lisp."
64 :group 'lisp) 64 :group 'lisp)
65 65
66(defface edebug-breakpoint '((t :inherit highlight))
67 "Face used to mark breakpoints."
68 :version "27.1")
66 69
67(defcustom edebug-setup-hook nil 70(defcustom edebug-setup-hook nil
68 "Functions to call before edebug is used. 71 "Functions to call before edebug is used.
@@ -3226,7 +3229,7 @@ the breakpoint."
3226 (let* ((pos (+ start (aref offsets (car breakpoint)))) 3229 (let* ((pos (+ start (aref offsets (car breakpoint))))
3227 (overlay (make-overlay pos (1+ pos)))) 3230 (overlay (make-overlay pos (1+ pos))))
3228 (overlay-put overlay 'edebug t) 3231 (overlay-put overlay 'edebug t)
3229 (overlay-put overlay 'face 'highlight)))))) 3232 (overlay-put overlay 'face 'edebug-breakpoint))))))
3230 3233
3231(defun edebug--overlay-breakpoints-remove (start end) 3234(defun edebug--overlay-breakpoints-remove (start end)
3232 (dolist (overlay (overlays-in start end)) 3235 (dolist (overlay (overlays-in start end))