emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Native display of line numbers, improved


From: Eli Zaretskii
Subject: Re: Native display of line numbers, improved
Date: Sun, 25 Jun 2017 17:03:30 +0300

> From: Stephen Berman <address@hidden>
> Cc: address@hidden
> Date: Sat, 24 Jun 2017 23:23:15 +0200
> 
> When the buffer ends with a newline and point is on it, no line number
> is displayed on the left, though with line-number-mode enabled the mode
> line does display the line number.

By "point is on it", I guess you mean point is at EOB, i.e. beyond the
last character position?  Because otherwise, I don't think I see what
you describe.

If this is about point at EOB, then this is the intended behavior: the
"line" where we position cursor in that case doesn't exist, so it
would be IMO incorrect to count it.  I'd prefer to leave the code
simple, without all kinds of subtleties whose sole purpose is to add
minor aesthetic sugar.

> Also, with display-line-numbers set to 'relative, it looks a bit odd
> to see relative numbering starting above an empty unnumbered line.

Nothing one cannot get used to, I think.

Thanks for the feedback.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]