GNU bug report logs - #60297
30.0.50; tab-bar-mode does not resize tabs without close button

Previous Next

Package: emacs;

Reported by: Protesilaos Stavrou <info <at> protesilaos.com>

Date: Sat, 24 Dec 2022 09:34:02 UTC

Severity: normal

Fixed in version 30.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Protesilaos Stavrou <info <at> protesilaos.com>
Cc: 60297 <at> debbugs.gnu.org
Subject: bug#60297: 30.0.50; tab-bar-mode does not resize tabs without close button
Date: Sat, 24 Dec 2022 20:05:28 +0200
close 60297 30.0.50
thanks

> The 'tab-bar-mode' can shrink tabs that exceed a certain width (see
> 'tab-bar-auto-width' and related).  This does not work when
> 'tab-bar-close-button-show' is set to nil.
>
> In the scratch buffer of 'emacs -Q':
>
> - Evaluate (tab-bar-mode 1)
>
> - The tab shows the name of the buffer.
>
> - Now rename the buffer to something long:
>   (rename-buffer "This is a very long title just to test if tabs have a max width as expected.")
>
> - The tab does not grow as much as the new name.
>
> - Now disable the close button: (setq tab-bar-close-button-show nil)
>
> - Evaluate again (tab-bar-mode 1)
>
> - The tab is not responding to 'tab-bar-auto-width'.

Thanks for the bug report.  This broke in 30.0.50 after replacing 'setf'
with code from 'cl--set-substring' in the commit 9452dc4821a.
Now this is fixed by copying more logic from 'cl--set-substring'.




This bug report was last modified 2 years and 148 days ago.

Previous Next


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