aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPo Lu2023-10-12 21:46:54 +0800
committerPo Lu2023-10-12 21:46:54 +0800
commitc6f07e13eef93af8b25064bb1bc975e8fafad591 (patch)
tree1c7ee68d335ee3072d5a2feb4140046dfb48d02d /doc
parent088dd67f891553e1a27e65c97e386d0dd8dc4f64 (diff)
downloademacs-c6f07e13eef93af8b25064bb1bc975e8fafad591.tar.gz
emacs-c6f07e13eef93af8b25064bb1bc975e8fafad591.zip
Enable highlighting Gud execution lines without hl-line-mode
* doc/emacs/building.texi (Debugger Operation): Mention two new options and the relationship between Gud and HL Line Mode. * etc/NEWS (Editing Changes in Emacs 30.1): Mention the new option. * lisp/progmodes/gud.el (gud-highlight-current-line-overlay): New variable. (gud-sentinel) <signal, exit>: Delete that overlay if set. (gud-highlight-current-line, gud-highlight-current-line-face): New user options. (gud-display-line): Create and move an overlay without employing hl-line-mode, if so enjoined by the user.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/building.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index d6610099460..2a98bffdc2d 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -698,6 +698,20 @@ which edited source line corresponds to the line reported by the
698debugger subprocess. To update this information, you typically have 698debugger subprocess. To update this information, you typically have
699to recompile and restart the program. 699to recompile and restart the program.
700 700
701@cindex GUD and hl-line-mode
702@cindex highlighting execution lines in GUD
703@vindex gud-highlight-current-line
704 Moreover, GUD is capable of visually demarcating the current
705execution line within the window text itself in one of two fashions:
706the first takes effect when the user option
707@code{gud-highlight-current-line} is enabled, and displays that line
708in an overlay whose appearance is provided by the face
709@code{gud-highlight-current-line-face}. The other takes effect when
710HL Line Mode (@pxref{Cursor Display}) is enabled, and moves the
711overlay introduced by HL Line Mode briefly to the execution line,
712until a subsequent editing command repositions it back beneath the
713cursor.
714
701@cindex GUD Tooltip mode 715@cindex GUD Tooltip mode
702@cindex mode, GUD Tooltip 716@cindex mode, GUD Tooltip
703@findex gud-tooltip-mode 717@findex gud-tooltip-mode