From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sean B. Palmer" Newsgroups: gmane.emacs.bugs Subject: bug#3628: Python-Mode Ignores Global Font Lock Date: Mon, 22 Jun 2009 11:00:13 +0100 Message-ID: References: Reply-To: "Sean B. Palmer" , 3628@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245665863 2594 80.91.229.12 (22 Jun 2009 10:17:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 10:17:43 +0000 (UTC) Cc: 3628@emacsbugs.donarmstrong.com To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 12:17:40 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MIgap-0000Py-Qv for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 12:17:40 +0200 Original-Received: from localhost ([127.0.0.1]:35273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIgap-0007zQ-0F for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 06:17:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIgah-0007z7-Fv for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 06:17:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIgac-0007wY-4x for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 06:17:30 -0400 Original-Received: from [199.232.76.173] (port=59668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIgab-0007wO-Ep for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 06:17:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47356) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MIgaa-0007Hm-R1 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 06:17:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5MAHMUg028035; Mon, 22 Jun 2009 03:17:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5MA579p025705; Mon, 22 Jun 2009 03:05:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Sean B. Palmer" Original-Sender: sean.b.palmer@googlemail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 22 Jun 2009 10:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3628 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3628-submit@emacsbugs.donarmstrong.com id=B3628.124566482724285 (code B ref 3628); Mon, 22 Jun 2009 10:05:07 +0000 Original-Received: (at 3628) by emacsbugs.donarmstrong.com; 22 Jun 2009 10:00:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5MA0JY6024163 for <3628@emacsbugs.donarmstrong.com>; Mon, 22 Jun 2009 03:00:21 -0700 Original-Received: by ewy26 with SMTP id 26so4222885ewy.1 for <3628@emacsbugs.donarmstrong.com>; Mon, 22 Jun 2009 03:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=FpsLILdKpzV7kF/Rn9jDBkyp91xyiAWsRSOdHvvnkEE=; b=pl1kDdkLubHGVFRfKtXSdO2nxL5qqbcHeqpSblhO+xtQUhpaVcXqx7ba9qSQU5xs+n WOASWm/jn+8RwNoybKJgzkMe70pXHDOk9LFC17+Rvf0uGQ+iu7InQWL5FX3ZqGJKEriu jpMhQmwbbQDA4mavf5o5QP+2t+/hQfGRc6xzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=I4Xh5tbfbLBt6wMVuA0BoG0ha8/ZqroDWxNcZeXvcOYK4hV9gRMYqrVSeOPxA8MMxz OWqinq6SOUCArNWo+mvTl5MVXyvrR6FyXo3KGgP3M5DXs5h/epWNJioQikbIwHuBF8uT wOP6pNRbAf6/b69dNx8MFw+8FAE+KTXgl8ZRA= Original-Received: by 10.210.102.12 with SMTP id z12mr4588878ebb.97.1245664813700; Mon, 22 Jun 2009 03:00:13 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: e40231701b70d10e X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 22 Jun 2009 06:17:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28899 Archived-At: 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/