From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs 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 Organization: LINKOV.NET Message-ID: <86edsoy8wn.fsf@mail.linkov.net> References: <87a63d2lk8.fsf@protesilaos.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31127"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60297@debbugs.gnu.org To: Protesilaos Stavrou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 24 19:07:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p98vU-0007zD-FO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Dec 2022 19:07:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p98vH-00068c-OI; Sat, 24 Dec 2022 13:07:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p98vG-00068F-II for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2022 13:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p98vG-0005t5-Ab for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2022 13:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p98vG-0003aM-6V for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2022 13:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Dec 2022 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60297 X-GNU-PR-Package: emacs Original-Received: via spool by 60297-submit@debbugs.gnu.org id=B60297.167190516913677 (code B ref 60297); Sat, 24 Dec 2022 18:07:02 +0000 Original-Received: (at 60297) by debbugs.gnu.org; 24 Dec 2022 18:06:09 +0000 Original-Received: from localhost ([127.0.0.1]:47106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p98uO-0003YV-TI for submit@debbugs.gnu.org; Sat, 24 Dec 2022 13:06:09 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:40771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p98uI-0003Xc-Qe; Sat, 24 Dec 2022 13:06:07 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id B7CA71C0002; Sat, 24 Dec 2022 18:05:53 +0000 (UTC) In-Reply-To: <87a63d2lk8.fsf@protesilaos.com> (Protesilaos Stavrou's message of "Sat, 24 Dec 2022 11:33:11 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251811 Archived-At: 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'.