emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix width tabs


From: Matthias Meulien
Subject: Re: Fix width tabs
Date: Fri, 18 Feb 2022 15:45:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

>> When a tab has multiple windows, its name is updated depending on
>> current buffer name.  Switching window (C-x o) results in the tab being
>> renamed.
>
> This problem doesn't exist when tab-bar-tab-name-function
> shows all window buffers with tab-bar-tab-name-all.
> So a possible solution is to enable this by default.

Thanks I didn't knew tab-bar-tab-name-all. Unfortunately visiting a new
window expands the tab name and thus there's the same problem.

> (...)
>> But I've not found a way to do that with current options. Is it
>> already possible?
>
> Yes, it's possible to do by writing a new function for
> tab-bar-tab-name-function.  There was a similar function
> for fixed tab widths in tab-line.el, but after discussions
> it was removed because it wasted too much screen space
> with empty spaces used to adjust for fixed widths.

I don't understand how it could waste more space than the
tab-bar-tab-name-all function you mentionned.

>> My understanding is that it's the default behavior in other applications
>> like Firefox. Is there good reason to have different default?
>
> The good reason is to have the more compact tab bar.
> If you want, you could try experimenting by writing a function
> for tab-bar-tab-name-function with padding every tab name
> by proportional amount of space.

I'll try this. Thanks a lot!
-- 
Matthias



reply via email to

[Prev in Thread] Current Thread [Next in Thread]