[Top][All Lists]

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

Re: font-locked Gnus browse server

From: Tassilo Horn
Subject: Re: font-locked Gnus browse server
Date: Mon, 18 May 2015 13:35:11 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Emanuel Berg <> writes:

>> Yes, this could also work. BTW, `font-lock-defaults'
>> is automatically buffer-local, no need to make
>> it so.
> Check out `gnus-server-mode' - gnus-srvr.el, which
> I have as
>     /usr/share/emacs/24.4/lisp/gnus/gnus-srvr.el
> line 263:
>     (set (make-local-variable 'font-lock-defaults) ; ...

Maybe it hasn't been buffer-local by default in Emacs 18, and that's a
relict of that time.

>>> With MODE as nil the font lock is done one the
>>> basis of the current buffer. It is not related to
>>> the mode itself apart from the invocation being
>>> placed in the mode entry hook. This means the
>>> keywords have to be added every time the mode
>>> is entered.
>> Yes, but that doesn't make a difference, no?
> All three solutions are equally bad in that all rely
> on the hook.
> The best solution would be to change
> `gnus-browse-mode' to do what gnus-server-mode does so
> `font-lock-defaults' is set and one only has to bother
> with the colors in an ordinary init file and can drop
> the hook.

Of course, that would be legit.


reply via email to

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