From unknown Fri Jun 20 07:19:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59208 <59208@debbugs.gnu.org> To: bug#59208 <59208@debbugs.gnu.org> Subject: Status: 29.0.50; tab-bar-auto-width plus display space cpu spin Reply-To: bug#59208 <59208@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:19:18 +0000 retitle 59208 29.0.50; tab-bar-auto-width plus display space cpu spin reassign 59208 emacs submitter 59208 Aaron Jensen severity 59208 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 02:32:03 2022 Received: (at submit) by debbugs.gnu.org; 12 Nov 2022 07:32:03 +0000 Received: from localhost ([127.0.0.1]:47200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otkzj-0006sX-9H for submit@debbugs.gnu.org; Sat, 12 Nov 2022 02:32:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:48902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otkzh-0006sF-Rc for submit@debbugs.gnu.org; Sat, 12 Nov 2022 02:32:02 -0500 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 1otkzg-0003qm-NJ for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 02:32:01 -0500 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otkze-0002TL-LT for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 02:31:59 -0500 Received: by mail-vs1-xe33.google.com with SMTP id p4so7047627vsa.11 for ; Fri, 11 Nov 2022 23:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=zbeQ8Zyhc2MrNWeyXUTTGKwdZQwQ+RZcEPbBImpWk5U=; b=OrB6Fsa3FgG8r/zQdzGksN7Pd0IVE2XzErIWYpnQszwfjx/hh8JQaGqdBmOrcZR0EV KRateuGHKVNk9NSmWH2cuAs65NcdwHNI4S8/M8KS8Za6OMZIIR47koaMNKErmChr1erc iwnce+iNRERE+sT63L6qjKS9AF8GwM7hSbcolUMg0Fmdsnx5wM75VAGCDZolZ/Kx4HmS by0+QxOhDBAaS4fXb/709g0aa6nMlO1NMkdXkz0ad0dofpIstDas7BpWid6YwiJjbwyh hxr4S9b6TRiiaas1SidiVtu4Hnlmjd0wzkh7NPPwasxTRycKdHMzLbANB5S1YHfamwgi o30w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zbeQ8Zyhc2MrNWeyXUTTGKwdZQwQ+RZcEPbBImpWk5U=; b=CfjTyleyAnBo/3asCIssEuIl3LmDzrBJYJlRIbcv6+7xFtzt7e+Pkc0DDhwGu6AG4p wbYfw4ppLO3ta26LVfGDfXgse62oO6HaR7GStpWw02x0jZrY5s3S2+z4OzT2cejF3cAB xksiCIiTz0riHpAmHGrrKLh7DlfnmaCAMOYcFaHenj8EGe/WOQtcdobmmhEi1ltTXacL fAYgqVvrvq4jPk+m3VQQMePm8IzRF3v3nBna7gb2ZXAYNdDZLUbytWRYLFZhUbKZjl0G eW29E0ErpihTtRecVk99a2ivrddPMH6rHTEsCfdbQl2FymTUV23vIgeSF41iC3RT6Evh ABJw== X-Gm-Message-State: ANoB5plVKf5RXyGYWzDQSHRBVl4KJ56pT1ldtKdKkwypoTbQb7IfzENw S3V2yh2mFTfQOTNRSVCvfztfsDDcZC8= X-Google-Smtp-Source: AA0mqf5JkGkje0LYocUTfdaAaOqKE2tdTDhd11gt6wgZ7JWxMbMEAkuO0FhmvTfkM0CRfv1DULUxzA== X-Received: by 2002:a67:cc1c:0:b0:398:28d5:8d1 with SMTP id q28-20020a67cc1c000000b0039828d508d1mr2585089vsl.33.1668238315803; Fri, 11 Nov 2022 23:31:55 -0800 (PST) Received: from aaron-m1.local (71-208-58-79.ftmy.qwest.net. [71.208.58.79]) by smtp.gmail.com with ESMTPSA id q27-20020a056102205b00b003aa2f6eab3fsm527273vsr.7.2022.11.11.23.31.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 23:31:55 -0800 (PST) From: Aaron Jensen To: bug-gnu-emacs@gnu.org Subject: 29.0.50; tab-bar-auto-width plus display space cpu spin Date: Sat, 12 Nov 2022 02:31:53 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::e33; envelope-from=aaronjensen@gmail.com; helo=mail-vs1-xe33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) My tab-bar-tab-name-format-function causes 100% cpu spin as of ca3763af5c. Disabling tab-bar-auto-width fixes it. To repro: emacs -Q -l repro.el repro.el: (defun aj/tab-bar-tab-name-format (tab i) (propertize (propertize " " 'display '(space :width (8))) 'face (funcall tab-bar-tab-face-function tab))) (setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format) (tab-bar-mode) In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-09-28 built on aaron-m1.local Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@29/29.0.50/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@29/29.0.50 --with-xml2 --with-gnutls --with-native-compilation --without-compress-install --without-dbus --without-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -mmacosx-version-min=12 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' 'LDFLAGS=-L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'' From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 13:44:22 2022 Received: (at 59208) by debbugs.gnu.org; 12 Nov 2022 18:44:22 +0000 Received: from localhost ([127.0.0.1]:49040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otvUM-00063d-6z for submit@debbugs.gnu.org; Sat, 12 Nov 2022 13:44:22 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:48437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otvUK-00063P-Ei for 59208@debbugs.gnu.org; Sat, 12 Nov 2022 13:44:21 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 2993F1BF204; Sat, 12 Nov 2022 18:44:10 +0000 (UTC) From: Juri Linkov To: Aaron Jensen Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin In-Reply-To: (Aaron Jensen's message of "Sat, 12 Nov 2022 02:31:53 -0500") Organization: LINKOV.NET References: Date: Sat, 12 Nov 2022 20:33:15 +0200 Message-ID: <86tu34ko8s.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > My tab-bar-tab-name-format-function causes 100% cpu spin as of > ca3763af5c. Disabling tab-bar-auto-width fixes it. > > To repro: emacs -Q -l repro.el > > repro.el: > > (defun aj/tab-bar-tab-name-format (tab i) > (propertize > (propertize " " 'display '(space :width (8))) > 'face (funcall tab-bar-tab-face-function tab))) > > (setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format) > > (tab-bar-mode) Thanks for the bug report. Since with (propertize " " 'display '(space :width (8))) the tab width can't grow more than 8 pixels, a possible fix would be on every iteration that adds more spaces to the tab name to check if the tab width remains the same. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 14:39:32 2022 Received: (at 59208) by debbugs.gnu.org; 12 Nov 2022 19:39:32 +0000 Received: from localhost ([127.0.0.1]:49052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otwLk-0007N8-7Z for submit@debbugs.gnu.org; Sat, 12 Nov 2022 14:39:32 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]:34785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otwLi-0007Ms-Od for 59208@debbugs.gnu.org; Sat, 12 Nov 2022 14:39:31 -0500 Received: by mail-pl1-f182.google.com with SMTP id v17so6859582plo.1 for <59208@debbugs.gnu.org>; Sat, 12 Nov 2022 11:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:references:from:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0EU7MfWmDIniCKYtO7S1BH60xCAOLRrpX6az5zljplo=; b=UUPf0qBhG41HBc6izAQxR99PAKnR311puiTz2P6qIDUw7lwi9JjflAuaBeDXplVvfS KtKqsjfOrp97OKzB17XEF5Y97DIElzZ74FuNo+Lw1ZcwWRCUqbxiVzoDhCieZkyPJ2YA /1uoLNPvO/2JE+GkoI1wmuUxeC9lrXhLzIYV+yMEY4uUXdmmoYdqgNhhm4vfHohjF5r2 S1I/JJ+dpI1DjEFJzDkTcDM7PAOS46bcYQ0vXPoiGofKfOoFg/uIzEBXN654JgzAzfNj HD55GtQd506dJluNBOKDlAGF39h1kjF45CsRIsqZx2QrXJcXFyDp+8GciHnLeyAHXFOi +axw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:references:from:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0EU7MfWmDIniCKYtO7S1BH60xCAOLRrpX6az5zljplo=; b=5moz7pZZnHuwehQlGnGpBMmIKxzuh9gmYZS0q8Noy46UAaSWgBZqmvBnElJ+C/xgOK /ImaGMsrhTKh4c5VDlC4nBJ/RiJx0CsDTYczHA4//MLLpv03vgYbqbx8jFAV9AAoC0lg Sx9ZI3Xp5ehuIUHGR0gkUcIN0lF3VA9y0/+e/hk3Zz3ohs/rDRW9Sp+2E0lH0JvS+TkW qJil5nD+KG7mSr68Oig4UPbmIdpJwlkad/TUfv+lKwp3C6Gq3T0FFXNovkNtofLfNAYp CEqsZTTZ0IaGPfyQcEt9KcdY8oi+2i7TKi91vX39lVWUDq6/KakameIhWMW5cO9LpL0h M3xQ== X-Gm-Message-State: ANoB5plk+CPxvzG7uc+8VxLMu/c3LdXKXVEO5uZkSjdUebY9vpwU9B47 Gi1D9FMYQyM03t/PKy8/Go8eLWjuYFoIY6obRLoD4zlG X-Google-Smtp-Source: AA0mqf7dHY+fKDeamuoWV4JrcF+mGAfooNlllbNy8xWdYBO1YJFmioXeKE5XUy99aueidQF3NG0V5yZKNjtvdAVLT3M= X-Received: by 2002:a17:902:ef87:b0:188:6429:d7bd with SMTP id iz7-20020a170902ef8700b001886429d7bdmr7658342plb.30.1668281964613; Sat, 12 Nov 2022 11:39:24 -0800 (PST) Received: from 649336022844 named unknown by gmailapi.google.com with HTTPREST; Sat, 12 Nov 2022 11:39:23 -0800 Mime-Version: 1.0 In-Reply-To: <86tu34ko8s.fsf@mail.linkov.net> X-Mailer: Superhuman iOS 10161 From: Aaron Jensen X-Superhuman-ID: laebztvl.89fd9426-dcc0-4ef6-a0f7-9723b2188dba References: <86tu34ko8s.fsf@mail.linkov.net> X-Superhuman-Draft-ID: draft00d7a49e34a6fb44 Date: Sat, 12 Nov 2022 11:39:23 -0800 Message-ID: Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin To: Juri Linkov Content-Type: multipart/alternative; boundary="000000000000e2d6e505ed4b2963" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000e2d6e505ed4b2963 Content-Type: text/plain; charset="UTF-8" Apologies for top posting, on my phone. I should note that my actual tab function has text as well (the tab name) and then I add a space at the end. The spaces are just visual padding. Aaron On Sat, Nov 12 2022 at 1:33 PM, Juri Linkov wrote: > My tab-bar-tab-name-format-function causes 100% cpu spin as of ca3763af5c. > Disabling tab-bar-auto-width fixes it. > > > > > To repro: emacs -Q -l repro.el > > > > > repro.el: > > > > > (defun aj/tab-bar-tab-name-format (tab i) > (propertize > (propertize " " 'display '(space :width (8))) > 'face (funcall tab-bar-tab-face-function tab))) > > > > > (setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format) > > > > > (tab-bar-mode) > > Thanks for the bug report. Since with > (propertize " " 'display '(space :width (8))) the tab width can't grow > more than 8 pixels, > a possible fix would be on every iteration > that adds more spaces to the tab name > to check if the tab width remains the same. > --000000000000e2d6e505ed4b2963 Content-Type: text/html; charset="UTF-8"
Apologies for top posting, on my phone. I should note that my actual tab function has text as well (the tab name) and then I add a space at the end. The spaces are just visual padding.


Aaron

On Sat, Nov 12 2022 at 1:33 PM, Juri Linkov <juri@linkov.net> wrote:

My tab-bar-tab-name-format-function causes 100% cpu spin as of ca3763af5c. Disabling tab-bar-auto-width fixes it.

>

To repro: emacs -Q -l repro.el

>

repro.el:

>

(defun aj/tab-bar-tab-name-format (tab i)
(propertize
(propertize " " 'display '(space :width (8)))
'face (funcall tab-bar-tab-face-function tab)))

>

(setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format)

>

(tab-bar-mode)

Thanks for the bug report. Since with
(propertize " " 'display '(space :width (8))) the tab width can't grow more than 8 pixels,
a possible fix would be on every iteration
that adds more spaces to the tab name
to check if the tab width remains the same.

--000000000000e2d6e505ed4b2963-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 13 13:18:39 2022 Received: (at 59208) by debbugs.gnu.org; 13 Nov 2022 18:18:40 +0000 Received: from localhost ([127.0.0.1]:52513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouHZ1-0007dn-JU for submit@debbugs.gnu.org; Sun, 13 Nov 2022 13:18:39 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouHZ0-0007dV-58; Sun, 13 Nov 2022 13:18:38 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5337760006; Sun, 13 Nov 2022 18:18:29 +0000 (UTC) From: Juri Linkov To: Aaron Jensen Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin In-Reply-To: (Aaron Jensen's message of "Sat, 12 Nov 2022 11:39:23 -0800") Organization: LINKOV.NET References: <86tu34ko8s.fsf@mail.linkov.net> Date: Sun, 13 Nov 2022 20:17:15 +0200 Message-ID: <865yfiafdg.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 59208 29.0.50 thanks > I should note that my actual tab function has text as well (the tab > name) and then I add a space at the end. The spaces are just visual > padding. I didn't try with text, I tried only with spaces as in your test case: > (defun aj/tab-bar-tab-name-format (tab i) > (propertize > (propertize " " 'display '(space :width (8))) > 'face (funcall tab-bar-tab-face-function tab))) But I believe that all cases should be fixed now by the commit 443bd35e86. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 13 14:17:33 2022 Received: (at 59208) by debbugs.gnu.org; 13 Nov 2022 19:17:33 +0000 Received: from localhost ([127.0.0.1]:48380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouIU0-0007t0-Nu for submit@debbugs.gnu.org; Sun, 13 Nov 2022 14:17:32 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:43741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouITw-0007sk-FI for 59208@debbugs.gnu.org; Sun, 13 Nov 2022 14:17:31 -0500 Received: by mail-pf1-f169.google.com with SMTP id g62so9180301pfb.10 for <59208@debbugs.gnu.org>; Sun, 13 Nov 2022 11:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SXKLbFt+J9v4nm7ZE/Xx48EcGJo77bin1VeqF22ORDs=; b=dlJRqgWrMpKcHiMpKwfiqA0dKWi1hc0z1BGtRcceWX/2WBUllQ/ITgM0/ikS0DMTwd jvBd+tCff4lkNX8rKUXcJo+W05mvVZOT1cNoh6y0GQq4E7Xa4+EhSJukCb7GlhADCWEO hsooHazEMPK+yZXVhfIaCoVo9nKVyT/vCgPlBWoxJyBLjP6LrvLGVYtj/BOUUiNf9ERL 1F2jgZ8auop5Z3ogj3k61F9+i6BKDD7JBnrZj5mOisU4olLQgQ6xLVItvEhKzv5VOEqC rScTH93ph7q6AtvrXcmHowCRrFnALTCYtsXwRHl57rfuETTCKRL5en958DFKknYvq4bq 3bcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SXKLbFt+J9v4nm7ZE/Xx48EcGJo77bin1VeqF22ORDs=; b=5OfiJtc9sRC47P8l17suHPoQpVodYv+Tno+YaDJLEcoeZtyyFB7mWyT6pjFwdVk8kf O9LsSHEn5fg2mZIiqUFaMo+CWbhFH8w7z/r/hVWNXqTXzEEu4evE8KHKLXXr2DzDBclD SE1rZZQIATOZa9q+p3p/AkhDHrYf3w3R2PtR5uW048C7964urR44tqOw0LWxG64x8Dsp KYY3IDWtslxuMqsdeJCqB6eWyoP+iQ4c9BZAbxqkt2CHRzq2iqvKDaYeI7ehktwDItsT JR2lkyhYHYcQTJYEnFhurDVwGUPfygmeccz36JXkK6uR1E/ZV+SbAfw6ZWAfjxT9ZjRi T7XA== X-Gm-Message-State: ANoB5plgVLem/r0++OXt94BOiqUyZ65dkCOE7j+Ny0F6FJau2vihsF9W ESU1H0QTKZ7XMLP7k0pg7aJCwWAk/S5WmSGS8S4= X-Google-Smtp-Source: AA0mqf6dwR1i//NdCkKmrT+4LknrCMsB0MRn8KuvjEeWOf00ydbqOWEiN/HiLJDa40XD6C7YXQSjY0MiELd4+defEfw= X-Received: by 2002:a63:1b52:0:b0:44e:74d0:e843 with SMTP id b18-20020a631b52000000b0044e74d0e843mr9506149pgm.95.1668367042547; Sun, 13 Nov 2022 11:17:22 -0800 (PST) MIME-Version: 1.0 References: <86tu34ko8s.fsf@mail.linkov.net> <865yfiafdg.fsf@mail.linkov.net> In-Reply-To: <865yfiafdg.fsf@mail.linkov.net> From: Aaron Jensen Date: Sun, 13 Nov 2022 14:17:11 -0500 Message-ID: Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Nov 13, 2022 at 1:18 PM Juri Linkov wrote: > > close 59208 29.0.50 > thanks > > > I should note that my actual tab function has text as well (the tab > > name) and then I add a space at the end. The spaces are just visual > > padding. > > I didn't try with text, I tried only with spaces as in your test case: > > > (defun aj/tab-bar-tab-name-format (tab i) > > (propertize > > (propertize " " 'display '(space :width (8))) > > 'face (funcall tab-bar-tab-face-function tab))) > > But I believe that all cases should be fixed now > by the commit 443bd35e86. Thanks, confirmed. As an aside, auto-width doesn't work very well when using a variable-pitch font for your tab bar. Specifically, for me it doesn't take up the full width when I have enough tabs that would fill that width. Aaron From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 02:54:53 2022 Received: (at 59208) by debbugs.gnu.org; 14 Nov 2022 07:54:53 +0000 Received: from localhost ([127.0.0.1]:48851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouUIv-0001fk-IM for submit@debbugs.gnu.org; Mon, 14 Nov 2022 02:54:53 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouUIu-0001fJ-4o for 59208@debbugs.gnu.org; Mon, 14 Nov 2022 02:54:52 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 005FD60005; Mon, 14 Nov 2022 07:54:44 +0000 (UTC) From: Juri Linkov To: Aaron Jensen Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin In-Reply-To: (Aaron Jensen's message of "Sun, 13 Nov 2022 14:17:11 -0500") Organization: LINKOV.NET References: <86tu34ko8s.fsf@mail.linkov.net> <865yfiafdg.fsf@mail.linkov.net> Date: Mon, 14 Nov 2022 09:50:25 +0200 Message-ID: <86zgcu3rge.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> But I believe that all cases should be fixed now >> by the commit 443bd35e86. > > Thanks, confirmed. > > As an aside, auto-width doesn't work very well when using a > variable-pitch font for your tab bar. Specifically, for me it doesn't > take up the full width when I have enough tabs that would fill that > width. Sorry, I don't understand the problem. It doesn't take up the full width of the tab bar? Does it fill the whole tab bar when you customize tab-bar-auto-width-max to nil? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 09:50:44 2022 Received: (at 59208) by debbugs.gnu.org; 14 Nov 2022 14:50:44 +0000 Received: from localhost ([127.0.0.1]:49167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouanL-0001vg-NB for submit@debbugs.gnu.org; Mon, 14 Nov 2022 09:50:43 -0500 Received: from mail-pj1-f44.google.com ([209.85.216.44]:43521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouanJ-0001vR-NR for 59208@debbugs.gnu.org; Mon, 14 Nov 2022 09:50:42 -0500 Received: by mail-pj1-f44.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso10863726pjc.2 for <59208@debbugs.gnu.org>; Mon, 14 Nov 2022 06:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QclcbpVmUlOyXl4W1MPSpTRE5hliyH5rhw07nmnrkuE=; b=dkWeDJ1zAW+6h3iW8cvBF1QSOab+DkrXrHPZNEbJA88L0/klLkFoKIgNfMojSUXS9h 6zol12BB1lStl20IR2yrfO4jEu4Pv54ojr9ssOCeAmW32a31vBZNchdJKOyFmFJorSIO yWcpoeUVzcqIDkqIJoCXc2ao+XuMHl9yyHXv9+J97PwmPb7tha7DYJwPL8vQ5oHaGkjl FAes7/Xn0hv+iHp4gk/IpXDUlx4V9td/WAbGPRc+7zMCDaA9ua/XQUKzFEMoLFdnaC9b pU46cwlFd79KETzERypoJEGh9SGqUdoIILwrsn6Eb8D6PJcX2o0Ka9BkAOwvZQocvIlD Juow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QclcbpVmUlOyXl4W1MPSpTRE5hliyH5rhw07nmnrkuE=; b=roLriPAhxorhA2JfNV7ZsCWaa3k5abcVHDFuuzqayJWG22XdLHDFZvIcsMdjb7WrUY GxfdjFfKdUk21pcI0vS3y+1P0WrRz3vhv2i//Xok1UjxdDmX0FUSj0odiBeXPk0WZmYV ge9/f5XZ8XPf+V4oRFTZL7kZ/Gbg4d+yc/IBnn0rDauHsazaduZgG0MikJ+Z1cbQYX9Y Rf/XaTCnS2n/Ls//Eeqf35WEUCA0H3Gq+B4Hs5e6BtCqNLQrrXShcGw4k1Z1sUWWtZQL 3SGsNunHUByfITb9gLWG6srDkiKEqEB9oR4RzyCfZ3xCaUlsFx8WvjRixkBpVtJdvpgm PeOQ== X-Gm-Message-State: ANoB5pnlufJUc7a8PvKcyMTa/DUkMm5RuHTehPbG2/Su4E6A0BLTTNT0 tFrhyHSDLYbSegaXxylvleY9VEAX+dqYmSqdJqLLZRAzBAc= X-Google-Smtp-Source: AA0mqf6AohDMP/8PlJEUHrrIis4t4eDarYzisQodkASaHLb5R+RK9ewMM220BCKl/t7bSdhfmqKq5Xo1/n+92OyG2hc= X-Received: by 2002:a17:902:ef87:b0:188:6429:d7bd with SMTP id iz7-20020a170902ef8700b001886429d7bdmr13741603plb.30.1668437435719; Mon, 14 Nov 2022 06:50:35 -0800 (PST) MIME-Version: 1.0 References: <86tu34ko8s.fsf@mail.linkov.net> <865yfiafdg.fsf@mail.linkov.net> <86zgcu3rge.fsf@mail.linkov.net> In-Reply-To: <86zgcu3rge.fsf@mail.linkov.net> From: Aaron Jensen Date: Mon, 14 Nov 2022 09:50:24 -0500 Message-ID: Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Nov 14, 2022 at 2:54 AM Juri Linkov wrote: > > >> But I believe that all cases should be fixed now > >> by the commit 443bd35e86. > > > > Thanks, confirmed. > > > > As an aside, auto-width doesn't work very well when using a > > variable-pitch font for your tab bar. Specifically, for me it doesn't > > take up the full width when I have enough tabs that would fill that > > width. > > Sorry, I don't understand the problem. It doesn't take up the full width > of the tab bar? Does it fill the whole tab bar when you customize > tab-bar-auto-width-max to nil? No, it does not. It's not computing the overall width of the window correctly or something like that: https://share.cleanshot.com/otuZj4 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 12:38:26 2022 Received: (at 59208) by debbugs.gnu.org; 14 Nov 2022 17:38:26 +0000 Received: from localhost ([127.0.0.1]:50827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oudPe-00009G-D7 for submit@debbugs.gnu.org; Mon, 14 Nov 2022 12:38:26 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oudPc-00008q-Jo for 59208@debbugs.gnu.org; Mon, 14 Nov 2022 12:38:25 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id B921BE0002; Mon, 14 Nov 2022 17:38:14 +0000 (UTC) From: Juri Linkov To: Aaron Jensen Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin In-Reply-To: (Aaron Jensen's message of "Mon, 14 Nov 2022 09:50:24 -0500") Organization: LINKOV.NET References: <86tu34ko8s.fsf@mail.linkov.net> <865yfiafdg.fsf@mail.linkov.net> <86zgcu3rge.fsf@mail.linkov.net> Date: Mon, 14 Nov 2022 19:28:35 +0200 Message-ID: <86wn7xwle4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> > As an aside, auto-width doesn't work very well when using a >> > variable-pitch font for your tab bar. Specifically, for me it doesn't >> > take up the full width when I have enough tabs that would fill that >> > width. >> >> Sorry, I don't understand the problem. It doesn't take up the full width >> of the tab bar? Does it fill the whole tab bar when you customize >> tab-bar-auto-width-max to nil? > > No, it does not. It's not computing the overall width of the window > correctly or something like that: https://share.cleanshot.com/otuZj4 Could you show the minimal tab function that reproduces the problem. Is it more like this? (defun aj/tab-bar-tab-name-format (tab i) (propertize (concat (alist-get 'name tab) (propertize " " 'display '(space :width (8)))) 'face (funcall tab-bar-tab-face-function tab))) (setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format) From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 13:11:49 2022 Received: (at 59208) by debbugs.gnu.org; 14 Nov 2022 18:11:49 +0000 Received: from localhost ([127.0.0.1]:50848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oudvw-0000xM-Kk for submit@debbugs.gnu.org; Mon, 14 Nov 2022 13:11:48 -0500 Received: from mail-pj1-f50.google.com ([209.85.216.50]:39696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oudvt-0000x6-Ku for 59208@debbugs.gnu.org; Mon, 14 Nov 2022 13:11:46 -0500 Received: by mail-pj1-f50.google.com with SMTP id e7-20020a17090a77c700b00216928a3917so14566945pjs.4 for <59208@debbugs.gnu.org>; Mon, 14 Nov 2022 10:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qrBLsF61hO4jJHqdxixip5rQsemIuiNtDwtvba0KhR0=; b=YwYcpQdUkaQIhbHprI4Si6m8L2IBdr6ViEo9+dO2gtXNgDctSWdjvpgQp1Z2ySoFkU NWVbcc1BTHmTfoxs2H1uqisJzrJ1y7fBpdEp9I8H6w9RdtxqqqIo95ybrRpr/QlHO1au InrGYGTQcbsPS9jkqUCQzJuCeVbThO/MSwg84ulqI3l+DFJhGy89KeFHmNyele01w9go /Hlkgws1kXNNlQs7Oyz8ndt9eYdv4fH6xrh9uPOUJkzg9qHSeiKcabeg+kgv7G/PbKHH gK6/5Xd0KYejBGIM0sDowbeTdSmPeW9jXOEZMSBI/gcq/sUmJEDmAJ8MNrkdsqOTcscX cS4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qrBLsF61hO4jJHqdxixip5rQsemIuiNtDwtvba0KhR0=; b=xCpgKNx12PjXs8UPyMxzmT7WCer0JUyNN5Qf8EajRzbMNP0NSBTo49I4LFSDllotkQ wEPo+i6PCZjZUMvNI3He9E95hiEWgkpzKTirKiPZ9PN/zId9P37SDxMTtBuJlGaIlenR vvhU82trourWnOAeErjgK/iHCg7PqKDGh1jctzx6+p6+X9fVeLU68KkFbNkjSp9RrfN7 0cAA3ZUKfbnf6PGKh70Vj9qzVrGmfpgY1NvwEiQuWl6ryhOkECrgi1OyDwdvg1bMUMri AgbAL3vhhfcHitPusM4tzoH9C04NEiA0EoemSGtfYk1tdm9XlAR5v5amXzgPjBxiDjTy WZsg== X-Gm-Message-State: ANoB5pnJy5ie8Wg/VDKn7nKs9mF1bphEhjZgoqr/0fnGJu9Rs+mhUkTc 67P1cbW1EiSm3DWDU0l9mq9qXvxIIk3FI+1J/MM= X-Google-Smtp-Source: AA0mqf41kJyMTNOACDnbVAofYBw3EZlxoc+mrCpaoPTrMGBEgyuEIeCDystpB8f6ts1ifv479cBfLwwBsQQi6XfLK9M= X-Received: by 2002:a17:90a:9b85:b0:212:f8e5:81ab with SMTP id g5-20020a17090a9b8500b00212f8e581abmr15212193pjp.114.1668449499581; Mon, 14 Nov 2022 10:11:39 -0800 (PST) MIME-Version: 1.0 References: <86tu34ko8s.fsf@mail.linkov.net> <865yfiafdg.fsf@mail.linkov.net> <86zgcu3rge.fsf@mail.linkov.net> <86wn7xwle4.fsf@mail.linkov.net> In-Reply-To: <86wn7xwle4.fsf@mail.linkov.net> From: Aaron Jensen Date: Mon, 14 Nov 2022 13:11:28 -0500 Message-ID: Subject: Re: bug#59208: 29.0.50; tab-bar-auto-width plus display space cpu spin To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59208 Cc: 59208@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Nov 14, 2022 at 12:38 PM Juri Linkov wrote: > > >> > As an aside, auto-width doesn't work very well when using a > >> > variable-pitch font for your tab bar. Specifically, for me it doesn't > >> > take up the full width when I have enough tabs that would fill that > >> > width. > >> > >> Sorry, I don't understand the problem. It doesn't take up the full width > >> of the tab bar? Does it fill the whole tab bar when you customize > >> tab-bar-auto-width-max to nil? > > > > No, it does not. It's not computing the overall width of the window > > correctly or something like that: https://share.cleanshot.com/otuZj4 > > Could you show the minimal tab function that reproduces the problem. > Is it more like this? > > (defun aj/tab-bar-tab-name-format (tab i) > (propertize > (concat (alist-get 'name tab) > (propertize " " 'display '(space :width (8)))) > 'face (funcall tab-bar-tab-face-function tab))) > > (setq tab-bar-tab-name-format-function #'aj/tab-bar-tab-name-format) It happens with the default. The issue is the variable pitch font. From unknown Fri Jun 20 07:19:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 13 Dec 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator