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#74817: 31.0.50; mode-line-format-right-align doesn't work well on header-line Date: Sat, 14 Dec 2024 12:55:00 +0200 Message-ID: <86ikrmv8jf.fsf@gnu.org> References: <87ikrp42as.fsf@Mufasa.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74817@debbugs.gnu.org To: Eval Exec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 11:56:34 2024 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 1tMPp4-0007hW-7V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 11:56:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMPoh-00076M-DF; Sat, 14 Dec 2024 05:56:11 -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 1tMPoZ-00075g-8U for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 05:56:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMPoY-0000Qk-7e for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 05:56:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=CtwwXUwZKHTrHXor0oeaH5u47mW2pu6OOdp6h6v1zYw=; b=NOEUORGIF0JlyY0Rt820oV/b8zAlUa8678h24nJ0htdR3xBSEiK6C91FOhl9hQo4UlkMtanM6qZ6lh3I2jSB8xTkawABJXvadYdMqqKNpcvBzpp6SgVY6eu0NLj1o/j1q066Nht62Xgp4a8d1YMXCAh3ONb4tWu7OnYtFrRGmCYI6EX+mQeCleD4n7Rj1qCNWIjXqjX4bns/ctMqpv0K2CrtqGz/hWAaPXri44EvOMaucg7I2Lnd0kNfekYih2DeTTGdwuZ1V2SRQHZ3Oaz7N1iBhK/jINdmUh5YfP+Qe9HPTUUJvRdSzyuPtjy7lEACC9x038we/eBfJmsDF3iMZw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMPoX-0002Kx-Mn for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 05:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2024 10:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74817 X-GNU-PR-Package: emacs Original-Received: via spool by 74817-submit@debbugs.gnu.org id=B74817.17341737228922 (code B ref 74817); Sat, 14 Dec 2024 10:56:01 +0000 Original-Received: (at 74817) by debbugs.gnu.org; 14 Dec 2024 10:55:22 +0000 Original-Received: from localhost ([127.0.0.1]:45685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMPnu-0002Jp-3C for submit@debbugs.gnu.org; Sat, 14 Dec 2024 05:55:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMPnr-0002JW-OX; Sat, 14 Dec 2024 05:55:20 -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 1tMPnm-0000Ko-Hn; Sat, 14 Dec 2024 05:55:14 -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=CtwwXUwZKHTrHXor0oeaH5u47mW2pu6OOdp6h6v1zYw=; b=pZp/bYI13ZuH yqE46CW6JTZD8gVM2MLcLkBnYmV4iIwWHO03FlTkliDN9TozO5y6LS5Rec6ZpEl+Hyi4p/uP7bXtE 1vxgrTj6yKdcc6R/EZ150uw5BmjHI3V/Vg7r2lFlaS2Xnkvv+KG841F3clXU4WWW46exjEIo5q7Ip dzNWiUWir1xHBHl+/OLO+gkhzRyVBrLxsPpge6D44Dj9/y3AzbOrXCAhaoGht3sg9SwkgJwvaDbB8 dnBtRy049Uca8CGc8hKkVmggyGUx3xscHThSAxfuurcmA7w6oPbSA5P44zpFrvWK0ENbueoQpxOxp yFsrqN2hnsUQP5Aw+UL/Ow==; In-Reply-To: <87ikrp42as.fsf@Mufasa.mail-host-address-is-not-set> (message from Eval Exec on Thu, 12 Dec 2024 18:35:07 +0800) 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:297034 Archived-At: tags 74817 notabug wontfix thanks > From: Eval Exec > Date: Thu, 12 Dec 2024 18:35:07 +0800 > > > for example: > I create a scratch init.el: > ```elisp > > > (defun header0() > "header_line_head") > (defun header1() > "header_line_tail") > > (add-to-list 'header-line-format '(:eval (header0)) t) > (add-to-list 'header-line-format mode-line-format-right-align t) > (add-to-list 'header-line-format '(:eval (header1)) t) > ``` > > Then start emacs, I got: https://imgur.com/a/PHGxRyf > > You can see, in the right side of header-line, it's wrong, not right align well. This feature doesn't work in header-line, only in mode-line. It specifically looks at mode-line-format.