Subject: Re: bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound!

From: Wolfgang Jenkner <[email-masked]>
Date: Tue, 27 Dec 2011 17:26:42 +0100

Katsumi Yamaoka <[email-masked]> writes:

> Wolfgang Jenkner wrote:
>> -(defvar font-lock-mode-hook)
>
> Why it is defvar'd here is that it no longer exists in Emacs but
> still exists in XEmacs.

Well, it doesn't exist anymore but it still works (and is used, e.g., in
c-mode) in Emacs as well (as a consequence of font-lock-mode being
defined via define-minor-mode).

> Gnus should run with not only old Emacsen but also XEmacsen[1],
> so please don't scrap it.  (when (featurep 'xemacs) ...?

There's also the problem that setting (or binding) font-lock-mode-hook
to nil prevents other (perhaps essential) functions on this hook from
running as well.  So, here "to scrap" really means "to honour" ;-)

Thank you for the explanation!

Wolfgang