From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Diancheng Wang Newsgroups: gmane.emacs.bugs Subject: bug#74642: 31.0.50; [Patch] Turn off current source line indicator when gdb buffer is killed Date: Mon, 02 Dec 2024 15:04:46 +0800 Message-ID: <87wmgiy38x.fsf@163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21040"; mail-complaints-to="usenet@ciao.gmane.io" To: 74642@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 08:06:48 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tI0W7-0005KD-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 08:06:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI0Vi-0005CM-Dm; Mon, 02 Dec 2024 02:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI0VP-0005Bg-23 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 02:06:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tI0VO-0002C2-LP for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 02:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=Gwyr/v5qAW+mS9tZCTZ66vRTEBKQeW/KvvNNUIOA8/g=; b=SoCJcOfbVA5UnbRtB5NRIUKqAuoRmhUoUxupekIgUXF66F2HJxwewxPPrtZsCE6xTPwSHSoqxFtjzJK7YHtxhkkMYgjNxYMo8sij4PWZCEvsVEqJ0OxJwpoPxl1RRvir/L88CCm7Yp4AhH5zEWzNw+bMgxaRvzuBxqYKGxFG0zggk/vbuy3sbeFakIVVHX8GYCF/4IjVEOqbu1K13Ik+Ohl3RPy/mareN/NAT5jlsGhMcknPemr4JsPwXKH2kCZVoS0CqdEz/kYc/abqEcgrUxQ4QRZusquByr1Br5SjLuOQtlwO9l01KgxJfTfOP1oqQSvHVz9CgouhwlxZ2k7zSA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI0VO-0005ar-FN for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 02:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Diancheng Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2024 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74642 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173312311121065 (code B ref -1); Mon, 02 Dec 2024 07:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2024 07:05:11 +0000 Original-Received: from localhost ([127.0.0.1]:54064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI0UX-0005T7-04 for submit@debbugs.gnu.org; Mon, 02 Dec 2024 02:05:11 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI0UV-0005Sx-Mx for submit@debbugs.gnu.org; Mon, 02 Dec 2024 02:05:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI0UV-00054R-0V for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 02:05:07 -0500 Original-Received: from m16.mail.163.com ([117.135.210.2]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI0UO-0001JY-Iw for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 02:05:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=Gwyr/v5qAW+mS9tZCTZ66vRTEBKQeW/KvvNNUIOA8/g=; b=GtFlROIrv7yCyvyZP/ZHz4vyl892exMkRr9ctvOW9oCgz9THz65suvN+tgIWvC h/y+FWRI6FMl6mRgmO6+TT7BH2IOcdwBZBVa8Lttc1yTIkZ1gFtS0fjFh9a+AVN5 6fTGkdqU/xSg72zXmlNSvisrbKn+7nb/za/u025doxFrg= Original-Received: from hadleywang-LC0 (unknown [111.206.94.147]) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wD3vz8PXE1nyCXACQ--.18082S3; Mon, 02 Dec 2024 15:04:48 +0800 (CST) X-CM-TRANSID: _____wD3vz8PXE1nyCXACQ--.18082S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUo3ktUUUUU X-Originating-IP: [111.206.94.147] X-CM-SenderInfo: xgld0u5khqwspzdqwqqrwthudrp/1tbizQWpqWdNWoUtRgAAsW Received-SPF: pass client-ip=117.135.210.2; envelope-from=diancheng_wang@163.com; helo=m16.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296300 Archived-At: --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=hide-current-line-indicator-kill-buffer.patch diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index b60e21ff0ae..110b9f5ed46 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -5278,6 +5278,7 @@ gdb-reset (setq gud-minor-mode nil) (kill-local-variable 'tool-bar-map) (kill-local-variable 'gdb-define-alist)))))) + (gud-hide-current-line-indicator t) (setq gdb-disassembly-position nil) (setq overlay-arrow-variable-list (delq 'gdb-disassembly-position overlay-arrow-variable-list)) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index a4e611277e4..ffd4dd70762 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -3017,7 +3017,8 @@ gud-reset (with-current-buffer buffer (when gud-minor-mode (setq gud-minor-mode nil) - (kill-local-variable 'tool-bar-map)))))) + (kill-local-variable 'tool-bar-map))))) + (gud-hide-current-line-indicator t)) (defun gud-display-frame () "Find and obey the last filename-and-line marker from the debugger. --=-=-=--