emacs-devel
[Top][All Lists]
Advanced

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

Re: something like linum.el ought to be added


From: Richard Stallman
Subject: Re: something like linum.el ought to be added
Date: Tue, 11 Sep 2007 16:31:09 -0400

    > Preserving overlays on the other parts of the buffer won't things
    > speed up

    Since those overlays can be reused when re-visiting the parts of the
    buffer they were created for, this can speed things up since it avoids
    re-creation of overlays and intermediate garbage collection.

Someone pointed out that you can use the same set of overlays
regardless of the buffer position.

    Line numbers should also be updated after scrolling, M-x goto-line and
    many other functions that change the visible portion.

That is true.  But you can do that by putting a hook onto
window-scroll-functions.  That plus after-change-functions let you get
a call for every event that could make it necessary.

Take a look at jit-lock.el and see how it determines when
to act and where.  linum.el can do it the same way.





reply via email to

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