all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sean B. Palmer" <sean@miscoranda.com>
To: Lawrence Mitchell <wence@gmx.li>
Cc: 3628@emacsbugs.donarmstrong.com
Subject: bug#3628: Python-Mode Ignores Global Font Lock
Date: Mon, 22 Jun 2009 11:00:13 +0100	[thread overview]
Message-ID: <b6bb4d890906220300s504c0545g827fccea63e3134d@mail.gmail.com> (raw)
In-Reply-To: <?fnord?y3h6my80vdkp.fsf@ID-97657.user.individual.net>

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/





      reply	other threads:[~2009-06-22 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-20 15:46 bug#3628: Python-Mode Ignores Global Font Lock Sean B. Palmer
2009-06-22  9:10 ` Lawrence Mitchell
2009-06-22 10:00   ` Sean B. Palmer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6bb4d890906220300s504c0545g827fccea63e3134d@mail.gmail.com \
    --to=sean@miscoranda.com \
    --cc=3628@emacsbugs.donarmstrong.com \
    --cc=wence@gmx.li \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.