[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: |
Richard Stallman |
Subject: |
Re: something like linum.el ought to be added |
Date: |
Sun, 16 Sep 2007 23:58:55 -0400 |
> I think that means we need to add a suitable hook which redisplay can
> call to inform Lisp code that visibility changes may have altered the
> position of the bottom of the window.
OTOH, using jit-lock would make this unnecessary.
jit-lock implements a specific functionality, fontification, and
nothing else.
I thought that the hooks used by jit-lock ought to be sufficient
for linum as well. But it turns out they are not, because
the code to run Vfontification_functions checks specifically
for the `fontified' property.
We could add another similar hook, or a more general mechanism to
implement similar hooks for various uses. But I think that is the
wrong way to go, because it depends on putting text properties on the
text, to indicate which parts have been processed. (Fontified, in the
case of jit-lock.)
We don't want linum to put on text properties to say where it has
put the line numbers. So I think my idea of using the same hooks
jit-lock uses was a mistake.
We seem to have another solution, which I suggested and Markus Triska
implemened.
- Re: something like linum.el ought to be added, (continued)
- Re: something like linum.el ought to be added, Juanma Barranquero, 2007/09/15
- Re: something like linum.el ought to be added, Markus Triska, 2007/09/15
- Re: something like linum.el ought to be added, Juanma Barranquero, 2007/09/15
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/16
- Re: something like linum.el ought to be added, Markus Triska, 2007/09/16
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/16
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/16
- Re: something like linum.el ought to be added,
Richard Stallman <=
- RE: something like linum.el ought to be added, brianjiang, 2007/09/17
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/17
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/17
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/17
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/17
- Re: something like linum.el ought to be added, Richard Stallman, 2007/09/17
- Re: something like linum.el ought to be added, Stefan Monnier, 2007/09/18
Re: something like linum.el ought to be added, martin rudalics, 2007/09/11
Re: something like linum.el ought to be added, Leo, 2007/09/10