emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb-ui and hl-line-mode


From: Eli Zaretskii
Subject: gdb-ui and hl-line-mode
Date: Wed, 28 Dec 2005 22:42:11 +0200

Some people, when they debug a program, like to have the current line
in the source window to be clearly visible.  One way to do that in
Emacs is to turn on the hl-line-mode in the source buffer, but the
results are strange: if you step through the code when the source
window is the currently selected one, the highlighted line stays one
step behind the fringe arrow and the cursor (e.g., the arrow points to
line 10, whereas line 9 is highlighted); switching to another window
and back fixes the overlay position.  And if you step with the source
window is not the selected one (e.g., you type `next' commands into
the GUD buffer), the highlight overlay does not move at all; however,
if you switch to the source window, the highlight overlay is correctly
moved to the current source line.

Is this some snafu with post-command hook being run a tad too early?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]