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 #25 received at 78953 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Juri Linkov <juri <at> linkov.net>
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 09:53:04 +0200
Juri Linkov <juri <at> linkov.net> writes:

>> Thanks. I think the code should be simplified - in fact it is
>> problematic like this since it will leak memory, if the string changes,
>> for example for a timer which counts up, where the same string will only
>> needed for a short while. A hash table is not needed to memoize a single
>> pair. It suffices to only store the current string to optimize
>> redisplay. You could store the string in the car of a cons, and the
>> width in the cdr.
>
> So you meant caching only the last string?  This is implemented now as well.

Yes, this is exactly what I meant. I will test it soon. Thanks again!

Daniel




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.