From: Eli Zaretskii <eliz@gnu.org>
To: diancheng_wang <diancheng_wang@163.com>
Cc: 74642-done@debbugs.gnu.org
Subject: bug#74642: 31.0.50; [Patch] Turn off current source line indicator when gdb buffer is killed
Date: Thu, 12 Dec 2024 12:47:13 +0200 [thread overview]
Message-ID: <86zfl1yy8e.fsf@gnu.org> (raw)
In-Reply-To: <c7dbc0b.12b0.193a907850a.Coremail.diancheng_wang@163.com> (message from diancheng_wang on Mon, 9 Dec 2024 09:27:42 +0800 (CST))
> Date: Mon, 9 Dec 2024 09:27:42 +0800 (CST)
> From: diancheng_wang <diancheng_wang@163.com>
> Cc: 74642@debbugs.gnu.org
>
> At 2024-12-07 21:25:20, "Eli Zaretskii" <eliz@gnu.org> wrote:
>
> >> From: Diancheng Wang <diancheng_wang@163.com>
> >> Cc: 74642@debbugs.gnu.org
> >> Date: Thu, 05 Dec 2024 16:37:33 +0800
> >>
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >>
> >> >> From: Diancheng Wang <diancheng_wang@163.com>
> >> >> Cc: 74642@debbugs.gnu.org
> >> >> Date: Thu, 05 Dec 2024 15:34:44 +0800
> >> >>
> >> >> > Crystal ball says that the regression was caused by the change you
> >> >> > submitted (and I installed) in bug#73687. It added a call to
> >> >> > gud-hide-current-line-indicator to gdb-starting and to gud-sentinel.
> >> >> > Could you try reverting those changes and see if that solves the
> >> >> > problem in Emacs 31?
> >> >>
> >> >> Yes, There is a regression in my patch: the arrow on the source line is
> >> >> not stopped displaying when "*gud-myprogram" got killed. But Emacs 30
> >> >> and Emacs 31 still have another issue:
> >> >> gud-highlight-current-line-overlay is not destroyed when
> >> >> "*gud-myprogram*" got killed.
> >> >
> >> > As I already wrote, I don't see the problem in Emacs 30: when I kill
> >> > the *gud-myprogram* buffer, the arrow disappears.
> >> >
> >> >> To reproduce it, you need to evaluate (setq
> >> >> gud-highlight-current-line t).
> >> >
> >> > So in Emacs 30 this only happens when gud-highlight-current-line is
> >> > non-nil?
> >>
> >> Yes, the highlighted current source line in source file is not
> >> un-highlighted when gud-highlight-current-line is non-nil.
> >>
> >> >
> >> >> I updated my patch to fix this 2 issues, see attachment.
> >> >
> >> > Does this fix the problem with the current-line indicator (either on
> >> > the fringe or as overlay-arrow) in both Emacs 30 and Emacs 31?
> >> >
> >> > Thanks.
> >>
> >> This patch depends on my previous patch, which is commit in master branch:
> >>
> >> --8<---------------cut here---------------start------------->8---
> >>
> >> commit bd5d84e5d3311e7ab4a7d0091d6c98365927d17a
> >> Author: Diancheng Wang <diancheng_wang@163.com>
> >> Date: Tue Oct 8 11:11:24 2024 +0800
> >>
> >> Stop highlighting current line when debuggee is running
> >>
> >> --8<---------------cut here---------------end--------------->8---
> >>
> >> To apply this fix, Emacs 30 needs this commit.
> >
> >OK. But the master branch needs only your last patch, and does not
> >need the original patch you posted in this bug report, is that right?
>
> Yes, that's right.
Thanks. So I've now installed that patch on the master branch, and
I'm therefore closing this bug.
prev parent reply other threads:[~2024-12-12 10:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 7:04 bug#74642: 31.0.50; [Patch] Turn off current source line indicator when gdb buffer is killed Diancheng Wang
2024-12-02 13:17 ` Eli Zaretskii
2024-12-03 2:04 ` Diancheng Wang
2024-12-03 12:32 ` Eli Zaretskii
2024-12-04 8:22 ` Diancheng Wang
2024-12-04 13:41 ` Eli Zaretskii
2024-12-04 19:11 ` Eli Zaretskii
2024-12-05 7:34 ` Diancheng Wang
2024-12-05 7:55 ` Eli Zaretskii
2024-12-05 8:37 ` Diancheng Wang
2024-12-07 13:25 ` Eli Zaretskii
2024-12-09 1:27 ` bug#74642: " diancheng_wang
2024-12-12 10:47 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86zfl1yy8e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=74642-done@debbugs.gnu.org \
--cc=diancheng_wang@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.