emacs-devel
[Top][All Lists]
Advanced

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

Re: Native line numbers landed on master


From: Eli Zaretskii
Subject: Re: Native line numbers landed on master
Date: Fri, 04 Oct 2019 10:45:30 +0300

> From: Juanma Barranquero <address@hidden>
> Date: Fri, 4 Oct 2019 03:51:29 +0200
> Cc: Stefan Kangas <address@hidden>, Robert Pluim <address@hidden>, 
>       Lars Magne Ingebrigtsen <address@hidden>, Eli Zaretskii 
> <address@hidden>, Ergus <address@hidden>, 
>       Emacs developers <address@hidden>
> 
> > Can we add a line number offset?
> >
> > display-line-number-offset
> >
> > As a signed integer which gets added the current number, defaulting to
> > 0.
> 
> That's a different feature.

Indeed.

> I don't understand the semantics.

I can suggest easy solutions:

> - If you set it to a negative number (as you'll do, to compensate for the 
> headers), what number will had
> previous lines: negative (which is currently unsupported), or positive going 
> backwards?

The latter.  Or maybe no number at all.

> - What do you want to do when in relative/visual modes?

Nothing: these modes are incompatible with the offset mode.

> - What about narrowing?

We could say that using the offset implies display-line-numbers-widen.



reply via email to

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