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: Stefan Monnier
Subject: Re: something like linum.el ought to be added
Date: Fri, 14 Sep 2007 09:59:37 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> 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.

I think your code should rely on fontification-functions instead of fiddling
with things like window-size-change-functions.  It may very well be that
fontification-functions doesn't work quite right for you, tho (basically it
was defined for jit-lock and I believe that putting more than one function
on it won't work right, so maybe you'd want to use jit-lock-register
instead).


        Stefan




reply via email to

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