From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59620: 29.0.50; Wrong global-mode-string position in tab-bar + emacs -nw Date: Mon, 28 Nov 2022 14:58:51 +0200 Message-ID: <83r0xnnsl0.fsf@gnu.org> References: <83k03grkaa.fsf@gnu.org> <86h6yjmpm6.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2500"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gabriel376@hotmail.com, 59620@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 28 13:59:14 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 1ozdj8-0000Tm-4K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Nov 2022 13:59:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozdix-00024G-US; Mon, 28 Nov 2022 07:59: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 1ozdiw-000243-Cl for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:59: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 1ozdiw-0007O1-4Y for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozdiw-00044u-0f for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2022 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59620 X-GNU-PR-Package: emacs Original-Received: via spool by 59620-submit@debbugs.gnu.org id=B59620.166964031515667 (code B ref 59620); Mon, 28 Nov 2022 12:59:01 +0000 Original-Received: (at 59620) by debbugs.gnu.org; 28 Nov 2022 12:58:35 +0000 Original-Received: from localhost ([127.0.0.1]:48459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdiV-00044d-AD for submit@debbugs.gnu.org; Mon, 28 Nov 2022 07:58:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdiT-00044X-IR for 59620@debbugs.gnu.org; Mon, 28 Nov 2022 07:58:34 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdiM-0007JD-Ui; Mon, 28 Nov 2022 07:58:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OZxqEXi2hYGHPF983X7ZknINg0hCVxk0v0v0FHHZtZ4=; b=hlOhtUwD0yzE 3FkAiCUoGa5ShKZQBj/AXxln31HICwx/YEHnpem/5gOxsi/Yxtc5AVATnWJ7vGGCdPxOgVRR/BVor 1Qgy4xZn2XdBVjPqt5kbUKikYhpxmTmDD45QQV3bejL3gHT2BuWWiKvkRFVXvHK44TY8VVlRJ0qB1 3Pw7ckpMxBTzSvoV9PrpZ9cGqiVGE43yDUpcHww3j/XkgA/3419MBkAGImyEZMazZFl1vYOVSDYFz nHi0d85C/tCwXN1ZxoHqZctR/q/0ffcwyEHe9HElpSOcD09bOwQ++EsvBOuHYSL3uWbgVQ5HIyRDk IL4ET9RNXSzPAnfdOtxzeA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdiG-0000ro-MM; Mon, 28 Nov 2022 07:58:26 -0500 In-Reply-To: <86h6yjmpm6.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 28 Nov 2022 09:54:17 +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:249291 Archived-At: > Cc: 59620@debbugs.gnu.org > From: Juri Linkov > Date: Mon, 28 Nov 2022 09:54:17 +0200 > > >> Looks like tab-bar-format-align-right is evaluated with the wrong window > >> being the selected one: it should use the tab-bar pseudo-window to do what > >> you expect. > > > > I don't know what is the root cause, but it's a reasonable hypothesis. > > Not sure why it only affects "emacs -nw", though. > > > > Do you know how to get the tab-bar pseudo-window? It seems that > > "f->tab_bar_window" it's not exposed from C to elisp. > > Unless Eli can suggest how to fix `(space :align-to (- right (,hpos))) > to work on TTY frames the same way as it works on GUI frames, > I could try to rewrite it to avoid the keyword `right', i.e. to use > `(space :align-to (,hpos-from-left)) where hpos-from-left could be > calculated by using string-pixel-width on the text from the left side. I replied without paying attention to the -nw part, sorry. On TTY frames the tab bar is not a window, so what I wrote is impossible, and thus avoiding the 'right' part in the align-to spec is a good idea regardless.