From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59769: 30.0.50; When debugging with M-x gdb, source buffers have RET key rebound to comint-send-input Date: Sat, 03 Dec 2022 11:41:28 +0200 Message-ID: <83edtgesdz.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3538"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59769@debbugs.gnu.org To: cade david Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 03 10:43:26 2022 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 1p1P3M-0000ku-Q0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 10:43:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1P32-0001V1-VZ; Sat, 03 Dec 2022 04:43:04 -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 1p1P30-0001Uo-Nz for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 04:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1P30-000840-Ap for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 04:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1P2z-00077b-PG for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 04:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Dec 2022 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59769 X-GNU-PR-Package: emacs Original-Received: via spool by 59769-submit@debbugs.gnu.org id=B59769.167006052227362 (code B ref 59769); Sat, 03 Dec 2022 09:43:01 +0000 Original-Received: (at 59769) by debbugs.gnu.org; 3 Dec 2022 09:42:02 +0000 Original-Received: from localhost ([127.0.0.1]:51428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1P22-00077G-7H for submit@debbugs.gnu.org; Sat, 03 Dec 2022 04:42:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1P1x-00076s-8j for 59769@debbugs.gnu.org; Sat, 03 Dec 2022 04:42:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1P1r-0007gr-Uz; Sat, 03 Dec 2022 04:41:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JmCqSpSyrxChegnmJIv3C/rQ91r8OTK3+1urX0Ua8Vs=; b=n9k4ybBRRNhm x8HXRlH8qek75gB1R7W+SYHrWlsD1KNAzSsxs+SLMWCgW/2gxUiFlMUK620eWLbE4lME4o6gZ2nQJ gw8h/swh+ImQs0xtJTmxwLlXbFJIkmbtkQV9y7y7P49NBLPR6MLLoEDKKcT7S+2JKMGWRoyhsCEVo /EqAc+KGot0ONF9Aoe1KPkEBd+stTEpeUABuCUO+K9bTQMwJh3HyimZwUQFPKmHxyK8/DNsrzKtOq SZvkGZYtyLBDpYWwVe0DS8TSXDhzNqGFKDIkN5eEOMBrvNRTmXb2UG9OWBhH7xemcLBjmo3QweeSI x2MuwaElEftmL+4CId6FrQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1P1q-0007ri-WB; Sat, 03 Dec 2022 04:41:51 -0500 In-Reply-To: (message from cade david on Fri, 2 Dec 2022 10:44:56 +0100) 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:249818 Archived-At: > From: cade david > Date: Fri, 2 Dec 2022 10:44:56 +0100 > > In emacs master, when debugging using M-x gdb, all the source buffers > identified as being part of the debugging session have RET bound to > comint-send-input. It writes in the minibuffer "Current buffer has no > process" and it doesn't insert a new line as I would have expected. > > Recipe from emacs -Q: > > M-x gdb emacs > (in gud buffer) > start > (here emacs.c buffer appears, go to it) > RET -> comint-send-input > > I surmise it has something to do with gud-minor-mode-map that derives > from gud-mode-map that derives from comint-mode-map. Thanks. Yes, this is yet another fallout from commit 8bb5c1b, which redid the GUD menus aiming to obsolete easy-mmode-defmap. Note that the above commit also lost the (IMO somewhat useful) feature whereby TTY frames displayed a tool-bar-like menu items on the menu bar, allowing TTY frame users with a mouse to debug by pushing "buttons". After trying to fix this for some time using only the un-obsolete APIs, I came to the conclusion that doing so, if possible, is above my pay grade. So I've reverted 8bb5c1b on the emacs-29 branch only (and un-obsoleted the APIs that were declared obsolete as result of that commit). On master, the problem remains, and if someone knows how to fix that with the "modern" APIs, feel free to do that, and we can later decide whether to backport the changes to the release branch. I'm leaving this bug open until it is fixed on master in some way.