Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: Tom Tromey <tom@tromey.com>, Petar Popovic <pjoetri@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix tui new-layout -horizontal argument placement
Date: Thu, 04 Dec 2025 10:04:55 +0000	[thread overview]
Message-ID: <87wm32r29k.fsf@redhat.com> (raw)
In-Reply-To: <87jyz36vx1.fsf@tromey.com>

Tom Tromey <tom@tromey.com> writes:

>>>>>> "Petar" == Petar Popovic <pjoetri@gmail.com> writes:
>
> Petar> The optional argument `-horizontal` from `tui new-layout` is supposed
> Petar> to be checked directly after the command but instead it is checked
> Petar> after the layout name.
> Petar> This commit moves the check to the correct place.
>
> I wonder if this is really true or if it is just the "usage" line in the
> doc string that is wrong.
>
> I notice this form also isn't documented.
>
> I tend to think it is better to fix the docs and not change the code
> here, because overall I think the intent was for window layouts to have
> more or less the same "shape", that is
>
> tui new-layout name -horizontal ...
>
> and
>
> tui new-layout name {-horizontal ...}

Also, this has been around for a while, so making this change would
break existing users code, which we usually try to avoid.

I agree updating the docs would be better.

Thanks,
Andrew


      reply	other threads:[~2025-12-04 10:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-29 17:40 Petar Popovic
2025-12-03 22:30 ` Tom Tromey
2025-12-04 10:04   ` Andrew Burgess [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=87wm32r29k.fsf@redhat.com \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pjoetri@gmail.com \
    --cc=tom@tromey.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox