[Top][All Lists]

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

Re: font-locked Gnus browse server

From: Emanuel Berg
Subject: Re: font-locked Gnus browse server
Date: Sat, 16 May 2015 23:25:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Tassilo Horn <> 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


line 263:

    (set (make-local-variable 'font-lock-defaults) ; ...

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

underground experts united

reply via email to

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