all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: cade david <codename68@gmail.com>
Cc: 59769@debbugs.gnu.org
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	[thread overview]
Message-ID: <83edtgesdz.fsf@gnu.org> (raw)
In-Reply-To: <CALT5Rhx86se=6t2J6k1fqjOKWtF-rHFJOBUD+tKtOUVQWmJ0Sw@mail.gmail.com> (message from cade david on Fri, 2 Dec 2022 10:44:56 +0100)

> From: cade david <codename68@gmail.com>
> 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.





      reply	other threads:[~2022-12-03  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02  9:44 bug#59769: 30.0.50; When debugging with M-x gdb, source buffers have RET key rebound to comint-send-input cade david
2022-12-03  9:41 ` 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=83edtgesdz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59769@debbugs.gnu.org \
    --cc=codename68@gmail.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.