[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: something like linum.el ought to be added
From: |
Joe Wells |
Subject: |
Re: something like linum.el ought to be added |
Date: |
Wed, 12 Sep 2007 10:14:03 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> I see what you mean; the main complication is that existing overlays
> can still be necessary in other windows that show the same buffer.
>
> That is true.
>
> So
> making all overlays available for (re-)consumption would entail
> walking all visible windows and adjusting (new or existing) overlays
> where necessary,
>
> Indeed, the after-change-functions hook will need to deal with
> all the windows. That is not very hard, with buffer-window-list.
>
> If each overlay records which windows it is meant for, the
> window-scroll-functions can could delete and redo only those that
> pertain to the current window. Each window will run the
> window-scroll-functions to recompute the overlays it needs.
And the “window” overlay property can allow the overlays for the
different windows to be completely independent of each other. There
could be two overlays for a given line and only one would be displayed
in each window.
> (We can add a primitive to select overlays based on a certain
> property value, to make that faster.)
Like next-single-property-change except for overlays instead of text
properties?
> We could also add this as a display feature.
> It might not be very hard.
By the way, it might help if there was an easier interface to the data
returned by (format-mode-line "%l" WINDOW). That cached information
is potentially a big speedup, but hard to access in a nice way.
--
Joe
- something like linum.el ought to be added, Joe Wells, 2007/09/09
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/10
- Re: something like linum.el ought to be added, Markus Triska, 2007/09/14
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/14
- Re: something like linum.el ought to be added, Joe Wells, 2007/09/14
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/14
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/14
- RE: something like linum.el ought to be added, brianjiang, 2007/09/14
- Re: something like linum.el ought to be added, Markus Triska, 2007/09/14
- Re: something like linum.el ought to be added, Juanma Barranquero, 2007/09/15