[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: brianjiang
Subject: RE: something like linum.el ought to be added
Date: Fri, 14 Sep 2007 23:04:37 +0800

Hi Markus,

I downloaded the newest version of the linum.el from the web (version 0.9n), 
and find that the line number doesn't work well in some folding function (e.g., 
outline mode). It can be reproduced by the following steps:

1. emacs -Q
2. load the linum.el
3. C-h n  to open the NEW.
3. M-x linum-mode
4. Click menu: Hide -> Hide Sublevel

Then some lines have no line number shown.


-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Markus Triska
Sent: 2007年9月14日 1:06
To: address@hidden
Cc: address@hidden; address@hidden
Subject: Re: something like linum.el ought to be added

Richard Stallman <address@hidden> writes:

> Indeed, the after-change-functions hook will need to deal with all the 
> windows.  That is not very hard, with buffer-window-list.

Yes, that's how I'm doing it now; update is now also added to several other 
hooks. One oversight in Emacs is, I think, that the functions in 
window-size-change-functions are invoked as regular functions in xdisp.c, 
therefore making the hook buffer-local currently results in an error (due to 
't'). I'm thus modifying the global hook for now.

> (We can add a primitive to select overlays based on a certain property 
> value, to make that faster.)

Thanks; however, the current approach in version 0.9m is already so fast that 
no new primitives seem to be necessary (for linum.el).

Emacs-devel mailing list

reply via email to

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