GNU bug report logs - #10063
24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound!

Previous Next

Packages: emacs, gnus;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Wed, 16 Nov 2011 12:31:05 UTC

Severity: normal

Found in version 24.0.91

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 10063 <at> debbugs.gnu.org (full text, mbox):

From: Wolfgang Jenkner <wjenkner <at> inode.at>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 10063 <at> debbugs.gnu.org,
	Leo <sdl.web <at> gmail.com>
Subject: Re: bug#10063: 24.0.91;
	Making font-lock-mode-hook buffer-local while locally let-bound!
Date: Tue, 27 Dec 2011 17:26:42 +0100
Katsumi Yamaoka <yamaoka <at> jpl.org> 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




This bug report was last modified 13 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.