GNU bug report logs -
#3628
Python-Mode Ignores Global Font Lock
Previous Next
Reported by: "Sean B. Palmer" <sean <at> miscoranda.com>
Date: Sat, 20 Jun 2009 15:55:04 UTC
Severity: normal
Merged with 4303
Found in version 23.1
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Mon, Jun 22, 2009 at 10:10 AM, Lawrence Mitchell wrote:
> (global-font-lock-mode 0) only turns /off/ font lock
Yeah, but I was asked on #emacs whether it was acting as a toggle,
perhaps just to confirm that there was no bug introducing toggle
behaviour where it wasn't expected.
> Font-lock is used unconditionally in python buffers, I think,
> so that text properties marking strings and comments can
> be maintained with greater ease than otherwise.
Not honouring explicit instructions to turn off highlighting globally
in emacs sounds like a poor design decision to me. I consider this an
important bug.
Meanwhile, it's possible to use this workaround:
(add-hook 'python-mode-hook
'(lambda () (global-font-lock-mode 0)))
Thanks,
--
Sean B. Palmer, http://inamidst.com/sbp/
This bug report was last modified 14 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.