all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: LemonBreezes <look@strawberrytea.xyz>
Cc: 64914@debbugs.gnu.org
Subject: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Date: Fri, 28 Jul 2023 18:48:28 +0300	[thread overview]
Message-ID: <831qgsjaur.fsf@gnu.org> (raw)
In-Reply-To: <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@app.fastmail.com> (message from LemonBreezes on Fri, 28 Jul 2023 10:54:02 -0400)

> Date: Fri, 28 Jul 2023 10:54:02 -0400
> From: LemonBreezes <look@strawberrytea.xyz>
> Cc: 64914@debbugs.gnu.org
> 
> No, setting gdb-display-io-nopopup to nil does not prevent the program IO from being split off into the
> gdb-inferior-io buffer, nor does it prevent the gdb-inferior-io buffer from popping up when debugging is
> started.

I said set it non-nil, not nil. nil is its default value, under which
it does pop up the IO buffer.  You want it not to pop up, so you
should set the variable to t.

> The purpose of setting gdb-display-io-buffer to nil is to prevent the gdb-inferior-io buffer from
> being created altogether, instead outputting the program output to the GDB buffer itself. A user in the
> Doom Emacs Discord told me this used to be the behavior of gdb-mi.el but that it was changed
> without giving the user the option to opt out. I have not investigated that but the comments say that is a
> feature of GDB 6.4 onward.

If the want the old behavior, why do they use gdb-mi at all? why not
use "M-x gud-gdb" instead?  That behaves exactly like the old GDB
interface.

But OK, if someone wants to downgrade gdb-mi this way, why not them
have it.  So I have a comment to your patch:

> +(defcustom gdb-display-io-buffer t
> +  "When non-nil, display the `gdb-inferior-io' buffer.  Otherwise,
> +send program output to the GDB buffer."
> +  :type 'boolean
> +  :group 'gdb
> +  :version "30.1")

The first line of a doc string should be a single complete sentence.

And please describe the behavior in the doc string better: this is not
about displaying the IO buffer, this is about not separating the
program's I/O from the GDB I/O and not redirecting the program's I/O
to a separate buffer.

And finally, please accompany your patch with a ChangeLog-style commit
log message (see CONTRIBUTE for details, if you need them).

Thanks.





      reply	other threads:[~2023-07-28 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28  0:33 bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer StrawberryTea
2023-07-28 11:17 ` Eli Zaretskii
2023-07-28 14:54   ` LemonBreezes
2023-07-28 15:48     ` 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=831qgsjaur.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=64914@debbugs.gnu.org \
    --cc=look@strawberrytea.xyz \
    /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.