From unknown Fri Jun 20 07:18:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59769 <59769@debbugs.gnu.org> To: bug#59769 <59769@debbugs.gnu.org> Subject: Status: 30.0.50; When debugging with M-x gdb, source buffers have RET key rebound to comint-send-input Reply-To: bug#59769 <59769@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:18:27 +0000 retitle 59769 30.0.50; When debugging with M-x gdb, source buffers have RET= key rebound to comint-send-input reassign 59769 emacs submitter 59769 cade david severity 59769 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 04:45:19 2022 Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 09:45:19 +0000 Received: from localhost ([127.0.0.1]:45658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p12be-0005cD-43 for submit@debbugs.gnu.org; Fri, 02 Dec 2022 04:45:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:48788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p12bY-0005Jb-GI for submit@debbugs.gnu.org; Fri, 02 Dec 2022 04:45:16 -0500 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 1p12bY-00075q-1s for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 04:45:12 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p12bV-0005AN-Ml for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 04:45:11 -0500 Received: by mail-pj1-x102d.google.com with SMTP id cm20so4435722pjb.1 for ; Fri, 02 Dec 2022 01:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=at3YJAfRFt3dBMAxmxnIWP3AuHdbFrL3DOQvBk2xJ/U=; b=HODZ0hGdyh8I7FkrvTw8XYRkqKXAwIwbaeposMJ2njIWBw4r6E83qk/taJs/i1Eqac pHfOIWVgkDPAb55tniszuCBLFLWO6aHtCx4iXW6dmJ+YLzaP0oAiFzh0BB7JS+Nm5Rbp rDP4qvWD/ZW1izkJH7jz1adKpz4wwmdxH7GJV/uHAAKAyGFTlfbNAmXdlsiOlPRnamoV 7VmCotQeAmnX1iiiZ+iwGlefu3CceIpHfhMn5BJCGqdnE8sTNJ7Rn3M77C1VR8W2dmqa vQmOd0GzjrcJPcqYriV3TvA92r4orLOy28QW5PZ+0/Gf6ofVG2beJOfxiPMTnvTmMJkA +6qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=at3YJAfRFt3dBMAxmxnIWP3AuHdbFrL3DOQvBk2xJ/U=; b=AeSJoE2gpj/jotb3gKzHl3PDfFMoxT0ug/J0wf2WZIqIqQ5qM3ZvpiOZ0vJfFSGlye /3YaKb5A+lfWX3mw85K/YMwkjh0fdjHSfU1qlSlvUD0qTD9emwIaBkcFRcseny2+rsvm DW4PRN4YTR9Y7M9CTTBUBBlSqHewhMDIH7iqI7wV6bHMSVVfULX909aRHiagofizhB3O pUhUXseDOgrhBAcOeK80adTs0TpIgs7ijCLaUJwJPYYTj7bx37YjPC1rY/nVS0nwk50m aG4F2QtEGQn2td77tDQkGQckyxYys55SJmrpdqb513Gfnn2mLhuUUFCSuWF9+qNoPTcK WsaQ== X-Gm-Message-State: ANoB5pkBJQTdyGNg8OEdeD/1q/X/Wh8msSLPotfWUT7Dr7Tg4VRVi1bH O36hzW+o1ZpQdg8aNID+Kkxw1OQrpUytujw6QRD4ke0EQPw= X-Google-Smtp-Source: AA0mqf5Sw7OGYPSwG5x17/AjmXvZdOECPafPw+oGsbiQVHxJzYHOn0XDRQdgL/GIRIXL5ZgbcN3meXEO+64TebEBd0k= X-Received: by 2002:a17:90a:4594:b0:218:f745:76fe with SMTP id v20-20020a17090a459400b00218f74576femr42823969pjg.245.1669974307634; Fri, 02 Dec 2022 01:45:07 -0800 (PST) MIME-Version: 1.0 From: cade david Date: Fri, 2 Dec 2022 10:44:56 +0100 Message-ID: Subject: 30.0.50; When debugging with M-x gdb, source buffers have RET key rebound to comint-send-input To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000064018205eed53188" Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=codename68@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --00000000000064018205eed53188 Content-Type: text/plain; charset="UTF-8" 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. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2022-12-02 built on machine Repository revision: 7d6f9753ade57821f5c409bcdeea700be8e53a74 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --prefix=/home/dcade/sw --with-native-compilation -with-json --with-xinput2' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=uim locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: bug-reference-prog-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils calc calc-loaddefs rect calc-macs vc-git diff-mode easy-mmode vc vc-dispatcher bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs files-x gdb-mi bindat byte-opt cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib gud comint ansi-osc ansi-color ring rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 161911 12738) (symbols 48 11812 0) (strings 32 44202 2825) (string-bytes 1 1677092) (vectors 16 27329) (vector-slots 8 474988 17497) (floats 8 49 128) (intervals 56 1143 0) (buffers 984 18)) --00000000000064018205eed53188 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In emacs master, when debugging using M-x gdb, all the sou= rce buffers
identified as being part of the debugging session have RET b= ound to
comint-send-input. It writes in the minibuffer "Current buf= fer 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 gu= d buffer)
start
(here emacs.c buffer appears, go to it)
RET -> = comint-send-input

I surmise it has something to do with gud-minor-mo= de-map that derives
from gud-mode-map that derives from comint-mode-map.=


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Versio= n
=C2=A03.24.24, cairo version 1.16.0) of 2022-12-02 built on machineRepository revision: 7d6f9753ade57821f5c409bcdeea700be8e53a74
Repositor= y branch: master
Windowing system distributor 'The X.Org Foundation&= #39;, version 11.0.12011000
System Description: Debian GNU/Linux 11 (bul= lseye)

Configured using:
=C2=A0'configure --prefix=3D/home/dc= ade/sw --with-native-compilation -with-json
=C2=A0--with-xinput2'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GP= M GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML= 2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP S= OUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 = XPM GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: fr_FR.UT= F-8
=C2=A0 value of $XMODIFIERS: @im=3Duim
=C2=A0 locale-coding-syste= m: utf-8-unix

Major mode: C/*l

Minor modes in effect:
=C2= =A0 bug-reference-prog-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-e= ldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t=
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-ba= r-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mod= e: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 l= ine-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=
=C2=A0 auto-compression-mode: t
=C2=A0 abbrev-mode: t

Load-pa= th shadows:
None found.

Features:
(shadow sort mail-extr emacs= bug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-= sec password-cache epa derived epg rfc6068
epg-config gnus-util text-pro= perty-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 = mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-u= til mail-prsvr mail-utils calc
calc-loaddefs rect calc-macs vc-git diff-= mode easy-mmode vc
vc-dispatcher bug-reference cc-mode cc-fonts cc-guess= cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs files-x g= db-mi bindat
byte-opt cl-loaddefs comp comp-cstr warnings icons subr-x r= x cl-seq
cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib gud = comint
ansi-osc ansi-color ring rmc iso-transl tooltip cconv eldoc paren=
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel=
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
re= gexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
pr= og-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
time= r select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-c= olors frame minibuffer nadvice seq simple cl-generic
indonesian philippi= ne cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet l= ao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech e= uropean ethiopic indian cyrillic chinese
composite emoji-zwj charscript = charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure = cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp file= s window text-properties
overlay sha1 md5 base64 format env code-pages m= ule custom widget keymap
hashtable-print-readable backquote threads dbus= bind inotify lcms2
dynamic-setting system-font-setting font-render-setti= ng cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-pro= cess
native-compile emacs)

Memory information:
((conses 16 161= 911 12738)
=C2=A0(symbols 48 11812 0)
=C2=A0(strings 32 44202 2825)=C2=A0(string-bytes 1 1677092)
=C2=A0(vectors 16 27329)
=C2=A0(vect= or-slots 8 474988 17497)
=C2=A0(floats 8 49 128)
=C2=A0(intervals 56 = 1143 0)
=C2=A0(buffers 984 18))
--00000000000064018205eed53188-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 04:42:02 2022 Received: (at 59769) by debbugs.gnu.org; 3 Dec 2022 09:42:02 +0000 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 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 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==; 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 Date: Sat, 03 Dec 2022 11:41:28 +0200 Message-Id: <83edtgesdz.fsf@gnu.org> From: Eli Zaretskii To: cade david In-Reply-To: (message from cade david on Fri, 2 Dec 2022 10:44:56 +0100) Subject: Re: bug#59769: 30.0.50; When debugging with M-x gdb, source buffers have RET key rebound to comint-send-input References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59769 Cc: 59769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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.