GNU bug report logs - #78953
31.0.50; tab-bar-format-align-right alignment breaks if field widths change

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Fri, 4 Jul 2025 06:41:02 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Full log


Message #55 received at 78953 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: 78953 <at> debbugs.gnu.org
Subject: Re: bug#78953: 31.0.50; tab-bar-format-align-right alignment breaks
 if field widths change
Date: Thu, 10 Jul 2025 21:20:16 +0300
> Since we are talking about the tab bar already I have another question -
> sometimes (rarely) my tab bar gets too long and then it wraps around,

It wraps around because the tab-bar is multi-line:
the number of tab-bar lines is defined by the frame parameter
'tab-bar-lines'.  So you can use more lines for text that
doesn't fit on the first line.

> which I find undesirable.

Is this when you set tab-bar-auto-width to nil?
Or the global string is too long?

> I would prefer if the content were truncated.

Can you truncate the global string inside :eval, e.g.

(setq global-mode-string
      '("|" (:eval (truncate-string-to-width (make-string 100 ?#) 10)) "|"))

> I suspect this is harder to address,

The wrapping is hard to disable.  So it's easier to truncate
the overly long strings.

> e.g., via an option tab-bar-truncate/tab-line-truncate? In any case,
> this is a rare edge case in my usage.

There are truncation options only for tab names, not for the global string.




This bug report was last modified 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.