unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master ca3763af5c: * lisp/tab-bar.el (tab-bar-fixed-width): New user option.
       [not found] ` <20221104074851.4ECB0C00B0F@vcs2.savannah.gnu.org>
@ 2022-11-04  8:02   ` Po Lu
  2022-11-05 17:04     ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: Po Lu @ 2022-11-04  8:02 UTC (permalink / raw)
  To: emacs-devel; +Cc: Juri Linkov

Juri Linkov <juri@jurta.org> writes:

> branch: master
> commit ca3763af5cc2758ec71700029558e6ecc4379ea9
> Author: Juri Linkov <juri@linkov.net>
> Commit: Juri Linkov <juri@linkov.net>
>
>     * lisp/tab-bar.el (tab-bar-fixed-width): New user option.
>     
>     (tab-bar-fixed-width-max): New user option.
>     (tab-bar-fixed-width-min): New variable.
>     (tab-bar-fixed-width-faces): New variable.
>     (tab-bar--fixed-width-hash): New function.
>     (tab-bar-make-keymap-1): Use 'tab-bar-fixed-width'.
>     
>     https://lists.gnu.org/archive/html/emacs-devel/2022-10/msg02067.html
> ---
>  etc/NEWS        |   5 +++
>  lisp/tab-bar.el | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 116 insertions(+), 1 deletion(-)
>
> diff --git a/etc/NEWS b/etc/NEWS
> index a185967483..f3a58366fe 100644
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -1076,6 +1076,11 @@ the corresponding deleted frame.
>  
>  ** Tab Bars and Tab Lines
>  
> +---
> +*** New user option 'tab-bar-fixed-width' to automatically resize tabs.
> +Another option 'tab-bar-fixed-width-max' defines the maximum tab width
> +that by default is 220 pixels on GUI and 20 characters on a tty.

Shouldn't this be some multiple of the display scale by default?  If
not, tabs will end up tiny for users of high-resolution displays.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: master ca3763af5c: * lisp/tab-bar.el (tab-bar-fixed-width): New user option.
  2022-11-04  8:02   ` master ca3763af5c: * lisp/tab-bar.el (tab-bar-fixed-width): New user option Po Lu
@ 2022-11-05 17:04     ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2022-11-05 17:04 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

>> +*** New user option 'tab-bar-fixed-width' to automatically resize tabs.
>> +Another option 'tab-bar-fixed-width-max' defines the maximum tab width
>> +that by default is 220 pixels on GUI and 20 characters on a tty.
>
> Shouldn't this be some multiple of the display scale by default?  If
> not, tabs will end up tiny for users of high-resolution displays.

I tried Double (HiDPI) in Firefox, and it changes the Firefox tab width
from 220 to 440 pixels.  But at the same time it also changes
the sizes of all used fonts, that Emacs doesn't do.  So the first task
would be to implement the display scaling applied to Emacs faces.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-05 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <166754813062.21582.971919039873408902@vcs2.savannah.gnu.org>
     [not found] ` <20221104074851.4ECB0C00B0F@vcs2.savannah.gnu.org>
2022-11-04  8:02   ` master ca3763af5c: * lisp/tab-bar.el (tab-bar-fixed-width): New user option Po Lu
2022-11-05 17:04     ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).