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#55207: 29.0.50; tab-bar-format-align-right only works correctly with monospace characters Date: Sun, 01 May 2022 20:55:43 +0300 Organization: LINKOV.NET Message-ID: <86levlf880.fsf@mail.linkov.net> References: <87y1zli75x.fsf@dsemy.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="31776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: daniel@dsemy.com To: 55207@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 01 19:57:10 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 1nlDok-0008BS-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 19:57:10 +0200 Original-Received: from localhost ([::1]:34166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlDoj-0004yj-CH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 13:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlDoc-0004xT-80 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlDob-0006lX-VX for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlDob-0000id-V6 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2022 17:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55207 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Daniel Semyonov via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 55207@debbugs.gnu.org, Daniel Semyonov Original-Received: via spool by 55207-submit@debbugs.gnu.org id=B55207.16514278032716 (code B ref 55207); Sun, 01 May 2022 17:57:01 +0000 Original-Received: (at 55207) by debbugs.gnu.org; 1 May 2022 17:56:43 +0000 Original-Received: from localhost ([127.0.0.1]:34133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDoJ-0000hk-7t for submit@debbugs.gnu.org; Sun, 01 May 2022 13:56:43 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDoH-0000hX-Ei for 55207@debbugs.gnu.org; Sun, 01 May 2022 13:56:41 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 4740AE0002; Sun, 1 May 2022 17:56:33 +0000 (UTC) In-Reply-To: <87y1zli75x.fsf@dsemy.com> (Daniel Semyonov via's message of "Sun, 01 May 2022 18:50:18 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:231183 Archived-At: > When a character using a variable pitch font or an image (I've only > tested this with XBM images) is displayed on the tab bar after > 'tab-bar-format-align-right', the resulting text ends before the end of > the tab bar. > > Exact recipe (assuming the default font for the tab bar is variable pitch): > > 1. $ emacs -Q > 2. M-: (setq tab-bar-format '(tab-bar-format-align-right tab-bar-format-tabs tab-bar-separator)) > 3. M-x tab-bar-mode > > After following these steps, the initial tab ends before the end > of the tab bar, and the gap grows with each additional tab. Thanks for the bug report. Indeed the property :align-to in tab-bar-format-align-right fails to align to the proper width when using a variable pitch font. Unfortunately, I have no idea how to fix this.