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#55387: 28.1.50; csv-mode: header does not align when line numbers are displayed Date: Fri, 13 May 2022 18:55:32 +0300 Message-ID: <83czghmnpn.fsf@gnu.org> References: <87wneq7oeb.fsf@fastmail.fm> <87ee0xvblm.fsf@gnus.org> <83mtflmu5l.fsf@gnu.org> <87lev5tuqp.fsf@gnus.org> <83k0apmsi4.fsf@gnu.org> <83h75tms3o.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55387@debbugs.gnu.org To: larsi@gnus.org, joostkremers@fastmail.fm Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 17:58:25 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 1npXgO-0006F2-US for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 17:58:25 +0200 Original-Received: from localhost ([::1]:48046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npXgN-0001yz-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 11:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npXe6-0007YH-RF for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:56:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npXe6-00023W-IK for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npXe6-0006DR-I4 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2022 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55387-submit@debbugs.gnu.org id=B55387.165245733823828 (code B ref 55387); Fri, 13 May 2022 15:56:02 +0000 Original-Received: (at 55387) by debbugs.gnu.org; 13 May 2022 15:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:44788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npXdi-0006CG-LQ for submit@debbugs.gnu.org; Fri, 13 May 2022 11:55:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npXdh-0006By-3N for 55387@debbugs.gnu.org; Fri, 13 May 2022 11:55:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npXdb-0001vK-P1; Fri, 13 May 2022 11:55:31 -0400 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=3n3+ljXK0EU/V3D6e1Tn4gF1LqjrND7pD+pQ7JCW7xs=; b=NUoK8wSOdOc2 1PaQ6BsfaVTwEqILuejXjcITvrMQZya4JVPINKx8Co+8rVjqCBhJczqXRuXZ3xpq4cjPWZACWAAG+ YKHKFpVuQ2x9a2HKepHAvUnUkuavmWnFPDJwH2piV1IhA9df5LbjEqqWdLAHGBsYiaiZawo9oeGrr HHdTHaAJnupBA2V0fS+a93CjF4azYcZETzcsrScDEsCvATn/WPi1rEE+yHdKWadDDPKaUl3MVoyTn 3wEBjWgN69ilZ/bzjTvHF2PrWPFA3YA4HyNH3Tatd3XLsTf99y7/sTYBxX7zTsR9pbpToDohpH9la PCuX9zvQU1sQI0UYDDKZpw==; Original-Received: from [87.69.77.57] (port=4211 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 1npXdW-0000VO-U8; Fri, 13 May 2022 11:55:27 -0400 In-Reply-To: <83h75tms3o.fsf@gnu.org> (message from Eli Zaretskii on Fri, 13 May 2022 17:20:43 +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:232167 Archived-At: > Resent-From: Eli Zaretskii > Original-Sender: "Debbugs-submit" > Resent-CC: bug-gnu-emacs@gnu.org > Resent-Sender: help-debbugs@gnu.org > Cc: joostkremers@fastmail.fm, 55387@debbugs.gnu.org > Date: Fri, 13 May 2022 17:20:43 +0300 > From: Eli Zaretskii > > > Cc: joostkremers@fastmail.fm, 55387@debbugs.gnu.org > > Date: Fri, 13 May 2022 17:12:03 +0300 > > From: Eli Zaretskii > > > > > header-line-format would look like > > > > > > (display-line-spaces ) > > > > > > where display-line-spaces would indeed be updated by the redisplay code > > > (to be of the same length as (line-number-display-width 'columns)). > > Btw, isn't it true that the problem is not in displaying the > header-line, but in adjusting the alignment of the _body_ of the table > to the changes in header-line (which happen automatically)? In which > case how will header-line construct help? So looking at cvs-mode.el, I conclude that I don't really understand the problem. It seems to use :align-to display spec to align columns in the body of the table, which should keep the alignment when line-numbers are turned on and off, so is the problem with the header-line after all? If so, why isn't just using line-number-display-width when calculating the header-line-format good enough? Perhaps Joost could describe the problem in more detail?