[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locall
bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound!
Tue, 27 Dec 2011 17:26:42 +0100
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (berkeley-unix)
Katsumi Yamaoka <address@hidden> 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,
> 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!