From unknown Mon Jun 23 04:12:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56874: 28.1.50; tab-bar-format-align-right should probably use string-width Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Aug 2022 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 56874@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165937257721982 (code B ref -1); Mon, 01 Aug 2022 16:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Aug 2022 16:49:37 +0000 Received: from localhost ([127.0.0.1]:41487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIYbp-0005iU-AS for submit@debbugs.gnu.org; Mon, 01 Aug 2022 12:49:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:33446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIYbj-0005iH-Vn for submit@debbugs.gnu.org; Mon, 01 Aug 2022 12:49:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIYbj-0003Q3-B7 for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2022 12:49:31 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:33009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIYbh-000192-Ba for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2022 12:49:31 -0400 X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CB6B66C2B41 for ; Mon, 1 Aug 2022 16:49:20 +0000 (UTC) Received: from pdx1-sub0-mail-a243.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 63A4F6C24CC for ; Mon, 1 Aug 2022 16:49:20 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1659372560; a=rsa-sha256; cv=none; b=NZnMcQfPpX1knTEGYVB/fQLp0OO32hOS1Bp5JQefFWlO7DwehG0aNPI5gm1HEnmZFPo90k 8jLfz0DRfBkQ5uEjEAJhFmgFc2F4Waq6vy1aa1wot9XHj/kIqiOeTBY/fp6qDqDIhVv2at WDHViC7ayU/rvRrgdFkC2/3ndj8gGpn+CnQcQTzXXJPs9qen9zdOe9KkVsrsYu1hnIGzhQ XVG4f10gO6d3yjpTUlIU2pygUeMqAD3xtdK/BZ37QyeS5ha6xvumPvIVMv6rMt1HDn/X/M RcRcTOCOKwuAN0+kwU38NsmJmxv5FP11M6YHGtasYyxQLA796KH6bWvJIlLbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1659372560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=t+NOfNs+DNWuTBPNVZbdPgntAeL+FiQBHK+1i3hpOog=; b=6wn+3bZjT4WnVL0UPNONcB0gFH3o606T6ISpcQOkCBcr4y7XMDLgwgIyNWxA1DslU2F02V geaCb9fds3eowN6/Yav8synrYHGiBQ3crAqkgwcrxsIL3N8bLDeOpqI96YhmEDXMu8eQik Ltla4RtxnUqwiU9WGtQvkqKSTmMmh9GQeLgxk04mtjiwR3Nou2bgtSU7vhkh2CKnebZ8TK WiiXvPEFBznh+uSh1jokFFMe1uE19CkX7dOlzh9hw3ue5oly/uD3m4nQMGrQiv549A5MnN zQO3YfjAL1SK+ugnIY3L9O0Azs1TEMd0iy4Skm4sJrAQx0kySf/Ssm8jAWPwMQ== ARC-Authentication-Results: i=1; rspamd-7586b5656-9ph8g; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|inbox@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Spot-Arithmetic: 3de8f5ed47310417_1659372560617_3290468407 X-MC-Loop-Signature: 1659372560617:1534517971 X-MC-Ingress-Time: 1659372560616 Received: from pdx1-sub0-mail-a243.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.115.45.58 (trex/6.7.1); Mon, 01 Aug 2022 16:49:20 +0000 Received: from [10.194.0.94] (unknown [136.144.43.21]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: inbox@alphapapa.net) by pdx1-sub0-mail-a243.dreamhost.com (Postfix) with ESMTPSA id 4LxPGm0Nvtz2k for ; Mon, 1 Aug 2022 09:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1659372560; bh=t+NOfNs+DNWuTBPNVZbdPgntAeL+FiQBHK+1i3hpOog=; h=Date:To:From:Subject:Content-Type:Content-Transfer-Encoding; b=zPNxG35z1yY+18DWRP3dn0s6gPJq+NlFrIDM+x4sGzGgUzEUsZ5itM53pnA40Lj12 su5HgrWTAKENA/GEvipUTCdV4NOeRg3XET97+lb8dM7v8U+G6gpOaqPnISF8h85wzP NJA3wbt2ses99t9eM6OYk7YUemG9KshCuNEiN8K2mL/5+F4G+69T8zXG7BiDJMLB4b iITgKBjyI7LLh89t9wDzF/WyRsz1dVu+5xBuKwmYGFHKT5sUhtnF1tiN/liwaMX2Mz Aw/hC87rE7/Y+T+mYgg3Uxw2BPU+/AjS7UWN0UawQITsVbr6sQoZg7IO4VMlU/tIyQ 5XDDMQdCt7w5Q== Message-ID: Date: Mon, 1 Aug 2022 11:49:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US From: Adam Porter Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: neutral client-ip=23.83.212.47; envelope-from=adam@alphapapa.net; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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.6 (--) Hi Juri, et al, I noticed that, when I added a mode line construct to global-mode-line and enabled the display of such in the tab line (using tab-bar-format-align-right, etc.), the construct wrapped onto a second line in the tab bar. I looked at the source code of tab-bar-format-align-right and noticed that it uses length instead of string-width. I changed it to string-width and it fixed the problem. Note that a similar problem remains: if the tab-bar face has, for example, a larger height than the default face, the width will still be incorrectly calculated, causing wrapping onto a new line. I don't know how to fix that, since window-text-pixel-size requires a buffer and a window. But this is an improvement, anyway. Thanks, Adam From unknown Mon Jun 23 04:12:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56874: 28.1.50; tab-bar-format-align-right should probably use string-width Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Aug 2022 18:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Adam Porter Cc: 56874@debbugs.gnu.org Received: via spool by 56874-submit@debbugs.gnu.org id=B56874.16593778618065 (code B ref 56874); Mon, 01 Aug 2022 18:18:03 +0000 Received: (at 56874) by debbugs.gnu.org; 1 Aug 2022 18:17:41 +0000 Received: from localhost ([127.0.0.1]:41608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIZz2-000260-PF for submit@debbugs.gnu.org; Mon, 01 Aug 2022 14:17:41 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:50895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIZyz-00025R-08 for 56874@debbugs.gnu.org; Mon, 01 Aug 2022 14:17:38 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9802C20008; Mon, 1 Aug 2022 18:17:27 +0000 (UTC) From: Juri Linkov In-Reply-To: (Adam Porter's message of "Mon, 1 Aug 2022 11:49:19 -0500") Organization: LINKOV.NET References: Date: Mon, 01 Aug 2022 21:13:43 +0300 Message-ID: <86pmhjbzmw.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-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 (-) > I noticed that, when I added a mode line construct to global-mode-line and > enabled the display of such in the tab line (using > tab-bar-format-align-right, etc.), the construct wrapped onto a second line > in the tab bar. I looked at the source code of tab-bar-format-align-right > and noticed that it uses length instead of string-width. I changed it to > string-width and it fixed the problem. > > Note that a similar problem remains: if the tab-bar face has, for example, > a larger height than the default face, the width will still be incorrectly > calculated, causing wrapping onto a new line. I don't know how to fix > that, since window-text-pixel-size requires a buffer and a window. > > But this is an improvement, anyway. Please check Emacs 29 where tab-bar-format-align-right contains a better improvement: (string-pixel-width (propertize rest 'face 'tab-bar)) Does this work in your case as well? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 02 06:18:04 2022 Received: (at control) by debbugs.gnu.org; 2 Aug 2022 10:18:04 +0000 Received: from localhost ([127.0.0.1]:42413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIoyR-0002Pu-TK for submit@debbugs.gnu.org; Tue, 02 Aug 2022 06:18:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIoyQ-0002Ox-AE for control@debbugs.gnu.org; Tue, 02 Aug 2022 06:18:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cTrThP5Tx2j+fcFJaHFRNcDcoG1klqhVrUiUW4esW1o=; b=j9IqROUbn5Q6NxzjOq/I25AxQW ofvzUY7af008SpPZPsCnKa3rFnDVSUciXhreOK7KTfKTreaQUtFm0JXwzZfr1Lz/s1Hcj3zlMuQ74 r4VTDUxcG8hh65Q4PkaVaz4rt/QAyXmp2vCrLiRmt2bYz2e1txIHIjhA1lfnm6BW9YNg=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIoyI-000764-Pm for control@debbugs.gnu.org; Tue, 02 Aug 2022 12:17:56 +0200 Date: Tue, 02 Aug 2022 12:17:52 +0200 Message-Id: <874jyv0x0v.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56874 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 56874 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) tags 56874 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 09:58:07 2022 Received: (at control) by debbugs.gnu.org; 4 Aug 2022 13:58:07 +0000 Received: from localhost ([127.0.0.1]:54050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJbMV-0006w9-AF for submit@debbugs.gnu.org; Thu, 04 Aug 2022 09:58:07 -0400 Received: from mail-ua1-f48.google.com ([209.85.222.48]:42624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJbMU-0006ut-9g for control@debbugs.gnu.org; Thu, 04 Aug 2022 09:58:06 -0400 Received: by mail-ua1-f48.google.com with SMTP id l7so8270147ual.9 for ; Thu, 04 Aug 2022 06:58:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=8XICaKVZKVp5gr2eWzyFNFfptprpbf/SyJQsjvcn6rs=; b=KEprbfgK8/dzI0ky2e2oRUuzT+bhX5PdSuAjf5mMHvHaxAzsdnC5HvybAqnR84Fwgi JEhlYqAAOuWuZTS/3NplghUw0ioz5btSSGynmiStTeMGg2zfxuvHYOdIBqE8Qseb1Rik GDN3SsyjOabD3IbiEYgCBkNi2QCq0mX0sI7te4Nooz02qE8IVRbAn/rCPfA/Lt9Bnrk6 phjHoGJL00FYXEY9Z+P0qB2hSU70Rsy59tdJZZvIN/l1dXuMHgl68afOQ3tvWGIbTBoc Nd2yto19KxKEdnfsqLZEFdnK/jZKu/71Bg6KYixuzbXPIzHv67ew19BIBouj2trCR6u+ b0Sg== X-Gm-Message-State: ACgBeo0MmAyW9hVucTZGJ8hbyMcWGWVO6PPSbsye3gG+J4ojAd5L6Bsl J8RaNWA7tTpDhlluI+yMdzhjR+cows03cj5JM7Gyahyh X-Google-Smtp-Source: AA6agR4ryuCZFFyOXcGN+tw6mcnsB3r8jr+OxkKcp8ix6z7j8a6tMU5yLJTQMNNlfa8E5/HrRz6aveDYOsHUcZq1gd8= X-Received: by 2002:ab0:3cc:0:b0:384:defe:ff2 with SMTP id 70-20020ab003cc000000b00384defe0ff2mr851595uau.71.1659621480865; Thu, 04 Aug 2022 06:58:00 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 4 Aug 2022 13:58:00 +0000 X-Hashcash: 1:21:220804:control@debbugs.gnu.org::mU4+d7cJDbjGiHBA:Wd5 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 4 Aug 2022 13:58:00 +0000 Message-ID: Subject: control message for bug #56874 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control 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: -0.5 (/) severity 56874 minor quit From unknown Mon Jun 23 04:12:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56874: 28.1.50; tab-bar-format-align-right should probably use string-width Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Aug 2022 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Juri Linkov Cc: 56874@debbugs.gnu.org Received: via spool by 56874-submit@debbugs.gnu.org id=B56874.16597315664658 (code B ref 56874); Fri, 05 Aug 2022 20:33:02 +0000 Received: (at 56874) by debbugs.gnu.org; 5 Aug 2022 20:32:46 +0000 Received: from localhost ([127.0.0.1]:60642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK3zx-0001D4-Rv for submit@debbugs.gnu.org; Fri, 05 Aug 2022 16:32:46 -0400 Received: from boar.tulip.relay.mailchannels.net ([23.83.218.250]:64903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK3zu-0001Cr-IR for 56874@debbugs.gnu.org; Fri, 05 Aug 2022 16:32:45 -0400 X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 620EF6A1A8F; Fri, 5 Aug 2022 20:32:38 +0000 (UTC) Received: from pdx1-sub0-mail-a207.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 83D476A1A07; Fri, 5 Aug 2022 20:32:37 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1659731557; a=rsa-sha256; cv=none; b=SFedXtcbycIwz3Cfb62ue9+lZ7XMNKsmynDQAZmRemcuwSKEowI3CzxD40XFlulotx3XoH /uCaHFbBBAzi2n6JFqxEwCYgugpg0yzfxpjbRTrWo67gtrCyBHB1mnCQapbRCwBcjmQ5dj 2rG7oNYAeuGCmNJ6rV7GKoBFhcl/U/YIo2NILxxCPrehHuSv+s75Mt6WJMN7smicklF+Vi hkfguFJEZYa+IFcHxPVXN9IaTINxWFb8xK2KldQRN7W0Vi3fZcNt/4tIWUNSqmOHK9ITJm AZyexQQpHnI8VBoFG+GWpFRU8Ap3TKIULgfVseL/zFooKiH5DcXBMA/3iEZsWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1659731557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=nmrbQ3zazJruHaUJ+QmeRfveVDFDU3sPd1k/g5S3kG4=; b=X+eK9xJaZEHJ+KAbOzIpM3RkZ9HGmD4jgog39IrSyuI9bl4rrBogQN+yaydsltjg5nIcAu JGEO0pFtubJ5/yLMjthLshIqMg6bg1Br0k6vXYPbvaVqGI6bKOXx9JL1NOZESIjfyt4caT JWP4y9jeODN/xsTAiuSVWQJ9+T0+M5xRmZORSJoYyOGogIMZeIYgVfYT2Kt39E/qFqNlMa Mn2AQOR0yiHJVyRVumiiIza8t7e99VFzL54EWU8q8Rb1jGGPJX5hsmMC2r47DuJmudHfln lcfRP497tpU7Iv4IiL4ZFkiBnwa3I54wpBcyWDkANG6Hvtyty2/S47nkXitgRg== ARC-Authentication-Results: i=1; rspamd-7586b5656-w46fl; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|inbox@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Fumbling-Absorbed: 0ef3d8fb766485d8_1659731557769_2952051948 X-MC-Loop-Signature: 1659731557769:1029233920 X-MC-Ingress-Time: 1659731557769 Received: from pdx1-sub0-mail-a207.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.123.82 (trex/6.7.1); Fri, 05 Aug 2022 20:32:37 +0000 Received: from [10.58.0.10] (unknown [45.131.192.220]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: inbox@alphapapa.net) by pdx1-sub0-mail-a207.dreamhost.com (Postfix) with ESMTPSA id 4Lzy2X6lsyzPs; Fri, 5 Aug 2022 13:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1659731557; bh=nmrbQ3zazJruHaUJ+QmeRfveVDFDU3sPd1k/g5S3kG4=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=F2eg/NzUMnAPSqZUHPcd1cycTxTnnk5Qq8ppXIrVaaF/WKyK5LTuUA8eSCjSh3hbl aPfpbI9FUX99SBBClymG1THZ0A+wXueO1XkkHf89Be7JWOTRmdBL2fxpQDNb57mCq9 wsjj2YjvvhufQvJDt5frcuxXsen/O2mWkzfU7W1lbcxCkKPr2WeK7KJ0d/f46gfGf4 oGaPDhwLP/aiZDwoJnF3gBrNzvPqklgzQTfJNZjsYoU1NGmYWDms/UbhqLP+daK1q8 VyD1vn+b+pvBTbN9SR/EOR2HktTDPqvTtqs+isN92FPRpgoSIegV4zcMafnEHP011r kt4jCBDk2cuGw== Message-ID: <40b946ca-71eb-0904-f1b1-773e5134bc4f@alphapapa.net> Date: Fri, 5 Aug 2022 15:32:35 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US References: <86pmhjbzmw.fsf@mail.linkov.net> From: Adam Porter In-Reply-To: <86pmhjbzmw.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.7 (/) 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: -0.3 (/) Hi Juri, On 8/1/22 13:13, Juri Linkov wrote: > Please check Emacs 29 where tab-bar-format-align-right > contains a better improvement: > > (string-pixel-width (propertize rest 'face 'tab-bar)) > > Does this work in your case as well? I don't have an Emacs 29 build readily accessible, but I see that Emacs 28 has the function `shr-string-pixel-width', which I'm guessing is similar. So I tried using that function, and it is an improvement, but not quite correct: rather than wrapping onto a new line, the string appears on the same line as the rest of the tab-bar, but it is not right-aligned as it should be. If it would help you reproduce the problem to test whether Emacs 29 already has a fix, all that seems to be necessary is to set the tab-bar face to, e.g. ":height 1.2", and add a string of some length (e.g. about 20) to the global-mode-string, and see whether it wraps onto a new line and whether it's right-aligned. If it seems correct on Emacs 29, then I'd guess it's already solved. Thanks, Adam From unknown Mon Jun 23 04:12:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56874: 28.1.50; tab-bar-format-align-right should probably use string-width Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2022 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Adam Porter Cc: 56874@debbugs.gnu.org Received: via spool by 56874-submit@debbugs.gnu.org id=B56874.1659979426572 (code B ref 56874); Mon, 08 Aug 2022 17:24:02 +0000 Received: (at 56874) by debbugs.gnu.org; 8 Aug 2022 17:23:46 +0000 Received: from localhost ([127.0.0.1]:41851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL6Ti-000097-Cp for submit@debbugs.gnu.org; Mon, 08 Aug 2022 13:23:46 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:54479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL6Te-00008b-17; Mon, 08 Aug 2022 13:23:42 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id C49E4200004; Mon, 8 Aug 2022 17:23:34 +0000 (UTC) From: Juri Linkov In-Reply-To: <40b946ca-71eb-0904-f1b1-773e5134bc4f@alphapapa.net> (Adam Porter's message of "Fri, 5 Aug 2022 15:32:35 -0500") Organization: LINKOV.NET References: <86pmhjbzmw.fsf@mail.linkov.net> <40b946ca-71eb-0904-f1b1-773e5134bc4f@alphapapa.net> Date: Mon, 08 Aug 2022 20:11:09 +0300 Message-ID: <865yj264pe.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-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 56874 29.0.50 thanks Hi Adam, > If it would help you reproduce the problem to test whether Emacs 29 already > has a fix, all that seems to be necessary is to set the tab-bar face to, > e.g. ":height 1.2", and add a string of some length (e.g. about 20) to the > global-mode-string, and see whether it wraps onto a new line and whether > it's right-aligned. If it seems correct on Emacs 29, then I'd guess it's > already solved. Thanks for the test case. I tried it in Emacs 29, and everything looks nice, so I'm closing this bug report.