From: Tom Tromey <tom@tromey.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Tom Tromey <tom@tromey.com>,
midenok@gmail.com, gdb@sourceware.org,
gdb-patches@sourceware.org
Subject: Re: GDB 9 TUI mode broken
Date: Sat, 22 Feb 2020 18:05:00 -0000 [thread overview]
Message-ID: <87y2su5whg.fsf@tromey.com> (raw)
In-Reply-To: <83mu9aj1pj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Feb 2020 13:33:44 +0200")
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> Tom, where's the position update of the status line supposed to be
Eli> handled?
I looked at the gdb-9 branch. In tui_adjust_win_heights, it is code
like this:
locator->resize (1, width,
0, (second_win->origin.y
+ second_win->height + 1));
Eli> And btw, the meaning of the 'locator' object in tui_adjust_win_heights
Eli> is unclear: to which window does it pertain, and what is the
Eli> significance of this line:
You and Simon discussed this down-thread. FWIW the name "locator" has
been used in the source since the beginning; but I also don't
particularly care for it (for a long time I could never remember the
name and had to search to find it whenever I needed it). So, I would
appreciate a rename in the code here as well.
Also, thanks for pointing out that this is called "status" in the docs.
That affects my other series to make user-specified layouts. In that
series I called the window "locator" -- but I'm going to go rename it.
Eli> TUI_CMD_WIN-> origin.y = locator->origin.y + 1;
This is a leftover and should be removed. The resize method is the way
to modify a window's size and position.
This code is all different on git master.
Your patch looks reasonable to me.
Tom
next prev parent reply other threads:[~2020-02-22 18:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAF8BazBni=TZWTc5fbpdHU5bv1eM=24xpML46GCC2u4pFTkSAw@mail.gmail.com>
[not found] ` <835zg5m7ib.fsf@gnu.org>
2020-02-22 11:33 ` Eli Zaretskii
2020-02-22 15:55 ` Simon Marchi
2020-02-22 16:04 ` Eli Zaretskii
2020-02-22 16:37 ` Eli Zaretskii
2020-02-22 18:06 ` Tom Tromey
2020-02-22 18:05 ` Tom Tromey [this message]
2020-02-22 18:23 ` Eli Zaretskii
2020-02-22 18:46 ` Eli Zaretskii
2020-02-22 19:10 ` Tom Tromey
2020-02-22 20:19 ` Eli Zaretskii
2020-02-22 19:02 ` Tom Tromey
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=87y2su5whg.fsf@tromey.com \
--to=tom@tromey.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=gdb@sourceware.org \
--cc=midenok@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox