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 16:36:22 +0300 Message-ID: <83mtflmu5l.fsf@gnu.org> References: <87wneq7oeb.fsf@fastmail.fm> <87ee0xvblm.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39386"; 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 15:37: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 1npVTw-000A5g-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 15:37:24 +0200 Original-Received: from localhost ([::1]:59310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npVTv-0006yK-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 09:37:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npVTb-0006tl-G2 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:37:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npVTb-0003g8-5H for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npVTb-0006yj-30 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:37:03 -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 13:37:03 +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.165244898926743 (code B ref 55387); Fri, 13 May 2022 13:37:03 +0000 Original-Received: (at 55387) by debbugs.gnu.org; 13 May 2022 13:36:29 +0000 Original-Received: from localhost ([127.0.0.1]:43224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npVT2-0006xF-QO for submit@debbugs.gnu.org; Fri, 13 May 2022 09:36:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npVSy-0006wT-Fw for 55387@debbugs.gnu.org; Fri, 13 May 2022 09:36:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npVSt-0003W2-5f; Fri, 13 May 2022 09:36:19 -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=rtUBRqTZg6TYXk5BMMJNwYYwhTl4Ui5hVM6bx+kjnyY=; b=G9N4m583cX/f 5hrFQvxuB/B0ekqka3Xj2Znng3e1mhivnO70SHxbm6jH9eiWVeoUf69eivruPHSfI6QTTHQpICRxR nOx+nwEyGFNmuzspowXihDpY4kFqk7Wck2Pxh/BvNT4cEHvJYE1sDvLi3UuUNApOAKAgKXrJ1ldEf Z+qbz9976e3jyTxbkh2jr+BMn/fmEO+d6CxJVCg5QO2tJZROx+MxTwt0Lss7RGnCMY7Kc6fWlXcYq uCRXITkSr6kD8yRu74o9h/yFVmg3FI3J/4MZXtw4CY2EpMNkEDQ+J+4bAGSDXFe6vgHIb5Y8F+ju2 Ptk2M4oLV8OIBLGGa02Zmg==; Original-Received: from [87.69.77.57] (port=3582 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 1npVSs-0000as-Ch; Fri, 13 May 2022 09:36:18 -0400 In-Reply-To: <87ee0xvblm.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 13 May 2022 14:52:21 +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:232144 Archived-At: > From: Lars Ingebrigtsen > Cc: 55387@debbugs.gnu.org, Eli Zaretskii > Date: Fri, 13 May 2022 14:52:21 +0200 > > I'm surprised that that's necessary -- surely > `display-line-numbers-mode' should itself fix up the header line? That > is, there should be a header line format construct that modes can add to > the front of `header-line-format' that's controlled by > `display-line-numbers-mode'. > > Eli, does this sound like a plan to you? I don't think I understand how this could work. The line-number width is not fixed, it changes dynamically as needed. How would the header-line adapt itself, except in some hook that is called by redisplay? Also, display-line-numbers-mode is not really a mode, in the sense that there's no mode-specific code anywhere. It's basically a variable that tells redisplay to do or not do something. So I don't think I understand how can this "mode" control anything?