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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 10063 <at> debbugs.gnu.org
Subject: bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound!
Date: Wed, 16 Nov 2011 09:49:37 -0500
> I am seeing this warning in Gnus.
> ,----
> | Making font-lock-mode-hook buffer-local while locally let-bound!
> `----

> which seems to relate to line 602 in mm-view.el

> 601:	    ;; Disable support modes, e.g., jit-lock, lazy-lock, etc.
> 602:	    (font-lock-mode-hook nil)
> 603:	    (font-lock-support-mode nil)

BTW, these should not be let-bindings but buffer-local bindings.

Also the mode-setting and font-locking should be wrapped in
with-demoted-errors so that errors in them don't prevent showing the
attachment's content.

Finally, font-lock-maximum-size should not be set to nil: there is
nothing special about font-locking attachments that makes it more
desirable to font-lock them entirely than normal files.


        Stefan




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.