emacs-devel
[Top][All Lists]
Advanced

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

Re: Native display of line numbers: visual line-counting


From: Joseph Garvin
Subject: Re: Native display of line numbers: visual line-counting
Date: Sun, 25 Jun 2017 14:31:43 -0500



On Sun, Jun 25, 2017 at 2:16 PM, Stefan Monnier <address@hidden> wrote:
> So a few people requested this feature, and I started thinking about
> its implementation.  Immediately I bumped into several issues that I'm
> not sure how to resolve, since I don't really understand how this will
> be used in Emacs.

Indeed, it's non-trivial.  E.g. if it's used for things like "go up
N lines", then it's important to make sure that the notion of "visual
line" is exactly the same for the "go up N lines" command as it is for
the line-number display code.

I take it for granted when using emacs that there is some configuration work involved. As long as there is a function I can bind for up/down that matches the the relative line numbering, it's not super important to me that they automatically are synced somehow. FWIW, visual line mode automagically rebinds the navigation keys already, so if the relative line numbering was just labeling the lines as visual line mode renders them, rendering and input should line up.


reply via email to

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