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 19:01:23 +0300 Message-ID: <83a6blmnfw.fsf@gnu.org> References: <87wneq7oeb.fsf@fastmail.fm> <87ee0xvblm.fsf@gnus.org> <83mtflmu5l.fsf@gnu.org> <87lev5tuqp.fsf@gnus.org> <83k0apmsi4.fsf@gnu.org> <875ym92zx0.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joostkremers@fastmail.fm, 55387@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 18:12:26 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 1npXtw-0004OW-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 18:12:24 +0200 Original-Received: from localhost ([::1]:46196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npXtv-0003yw-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 12:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npXk9-0008WC-Dj for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02:17 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npXju-000339-F3 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npXju-0006S2-DG for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02: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 16:02: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.165245768324691 (code B ref 55387); Fri, 13 May 2022 16:02:02 +0000 Original-Received: (at 55387) by debbugs.gnu.org; 13 May 2022 16:01:23 +0000 Original-Received: from localhost ([127.0.0.1]:44812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npXjH-0006QA-Hq for submit@debbugs.gnu.org; Fri, 13 May 2022 12:01:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npXjG-0006Pv-LR for 55387@debbugs.gnu.org; Fri, 13 May 2022 12:01:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npXjB-0002y7-6J; Fri, 13 May 2022 12:01:17 -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=DUigPeappy48c3mumFYwEp5OezvANd8dIdZNqOVy4TY=; b=L/WZ/p7zyB9f TwS1/eAmrLD7Wd+vb85qs+CexbsfhS+bWg2GWNEsAE76Q8BjR3P1yVxm7M90L+w8FuYKuWSsTD8iJ 2CcZXHuYfbMUDrUVrsfSqbEjQiHBiODOfL56faEyXGayF+DsVTrHcE4rjwTAgmSmm9P1YxOTp+hFk fZO9DHrDIzlCQqaZ/Oe/EfyaCwEZQOvsZxVM7RRFfwA5z7rB2eTwine5Tbd6G6dRk06Fh3kIb8aaK 5kF4XJwl8/5VnuBp1eYp6eS3TlDwkmL0OegjjUIHUKMTFgfwpH/T0WuIt0Pco4tS30aLz9BIZQlcT Rn4zcVR/tOf2BGbl3YxeVQ==; Original-Received: from [87.69.77.57] (port=4569 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 1npXjA-00059G-LI; Fri, 13 May 2022 12:01:16 -0400 In-Reply-To: <875ym92zx0.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 13 May 2022 17:52:11 +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" Xref: news.gmane.io gmane.emacs.bugs:232170 Archived-At: > From: Lars Ingebrigtsen > Cc: joostkremers@fastmail.fm, 55387@debbugs.gnu.org > Date: Fri, 13 May 2022 17:52:11 +0200 > > I don't really understand your point here, so I'm probably > misunderstanding something fundamental. My thought was just that the > thing that produces the line number would set a > line-number-width/columns variable. There's no such variable. line-number-display-width is a function, it computes the result anew when called. > > 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? > > The header line isn't adjusted automatically by display-line-number-mode. Does the problem happen only when display-line-number-mode is turned on or off? Or does it happen on other occasions, and if so, which ones? And what triggers recalculation of the header-line-format in this mode? That trigger is different between different users of modes like this one, so coming up with a one-fits-all solution is not easy, if at all possible.