From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: orontee@gmail.com, emacs-devel@gnu.org
Subject: Re: Fix width tabs
Date: Sun, 06 Nov 2022 12:59:42 +0200 [thread overview]
Message-ID: <83pme01h7l.fsf@gnu.org> (raw)
In-Reply-To: <865yfts53l.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 05 Nov 2022 19:12:54 +0200)
> From: Juri Linkov <juri@linkov.net>
> Cc: orontee@gmail.com, emacs-devel@gnu.org
> Date: Sat, 05 Nov 2022 19:12:54 +0200
>
> > "Automatically resize tabs on the tab bar to the fixed width.
> > This variable is intended to solve two problems. When switching buffers
> > on the current tab, the tab changes its name to buffer names of
> > various lengths, thus resizing the tab and shifting the tab positions
> > on the tab bar. But with the fixed width, the size of the tab name
> > doesn't change when the tab name changes, thus keeping the fixed
> > tab bar layout. The second problem solved by this variable is to prevent
> > wrapping the long tab bar to the second line, thus keeping the height of
> > the tab bar always fixed to one line.
> >
> > The maximum tab width is defined by the variable `tab-bar-fixed-width-max'."
> >
> > This begs the question: what is the fixed width to which the tabs are
> > resized? if it's "fixed", then the value is known in advance, right?
> > Moreover, if the tab sizes are fixed, why does the doc string say
> > "automatically resize"? "resizing" is the antithesis of "fixed width".
>
> Maybe a better name would be `tab-bar-auto-resize'?
> But this name will be confused with the existing
> `auto-resize-tab-bars' that resizes the tab-bar's height,
> not width.
I suggest the name tab-bar-auto-width. With the following doc string:
Automatically resize width of tabs on tab bar to fill available tab-bar space.
When non-nil, the widths of the tabs on the tab bar are automatically
resized so that their width is evenly distributed across the tab bar.
This keeps the widths of the tabs independent of the length of the
buffer names shown on each tab; the tab widths change only when tabs
are added or deleted, or when the frame's dimensions change. This
also avoids as much as possible wrapping a long tab bar to a second
tab-bar line.
The automatic resizing of tabs takes place as long as tabs are no
wider than allowed by the value of `tab-bar-fixed-width-max', and at
least as wide as specified by the value of `tab-bar-fixed-width-min'.
When this variable is nil, the width of each tab is determined by the
length of the tab's name."
OK?
prev parent reply other threads:[~2022-11-06 10:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 21:31 Fix width tabs Matthias Meulien
2022-02-18 7:49 ` Juri Linkov
2022-02-18 14:45 ` Matthias Meulien
2022-02-19 17:05 ` Juri Linkov
2022-02-21 8:30 ` Juri Linkov
2022-02-21 12:38 ` Matthias Meulien
2022-02-22 17:18 ` Juri Linkov
2022-10-27 7:40 ` Juri Linkov
2022-10-30 19:50 ` Matthias Meulien
2022-11-02 18:01 ` Juri Linkov
2022-11-04 7:48 ` Juri Linkov
2022-11-04 8:07 ` Eli Zaretskii
2022-11-05 17:12 ` Juri Linkov
2022-11-05 17:28 ` Eli Zaretskii
2022-11-05 18:20 ` Juri Linkov
2022-11-05 17:56 ` tomas
2022-11-05 18:17 ` Juri Linkov
2022-11-06 10:59 ` 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=83pme01h7l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=orontee@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.