GNU bug report logs - #55387
28.1.50; csv-mode: header does not align when line numbers are displayed

Previous Next

Package: emacs;

Reported by: Joost Kremers <joostkremers <at> fastmail.fm>

Date: Thu, 12 May 2022 15:38:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.1.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: joostkremers <at> fastmail.fm, 55387 <at> debbugs.gnu.org
Subject: bug#55387: 28.1.50; csv-mode: header does not align when line numbers are displayed
Date: Sat, 14 May 2022 08:17:08 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: joostkremers <at> fastmail.fm,  55387 <at> debbugs.gnu.org
> Date: Fri, 13 May 2022 19:40:34 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> I know.  We would introduce such a variable and (offer to) use it in
> >> header-line-mode.
> >
> > That's impossible, because the value depends on the buffer position.
> 
> We only care about the value of the first (displayed) line after the
> header line, so the new variable would only be updated when we're
> computing that line.  I.e., line 1.

Maybe in this particular mode, but it isn't always true.

And I don't really understand what will such a variable solve.  If
some Lisp program can use a value of a variable, it can also call a
function and use its return value, no?

(In any case, we cannot provide a simple variable, because the value
depends on the window -- if the same buffer is displayed in several
windows, the value could be different in each one of those windows.)




This bug report was last modified 3 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.