Emanuel Berg <[email protected]> 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. Bye, Tassilo _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
