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,gmane.emacs.pretest.bugs Subject: bug#3628: Python-Mode Ignores Global Font Lock Date: Sat, 20 Jun 2009 16:46:58 +0100 Message-ID: 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 1245519448 7628 80.91.229.12 (20 Jun 2009 17:37:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2009 17:37:28 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 19:37:25 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 1MI4VI-0007jr-MK for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 19:37:25 +0200 Original-Received: from localhost ([127.0.0.1]:55968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MI4VI-0005d1-23 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 13:37:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MI2wb-00025I-DB for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2009 11:57:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MI2wW-0001ud-H3 for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2009 11:57:28 -0400 Original-Received: from [199.232.76.173] (port=50541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MI2wW-0001uH-Ai for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2009 11:57:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35567) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MI2wV-0007sI-N2 for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2009 11:57:24 -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 n5KFvLTx009345; Sat, 20 Jun 2009 08:57:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5KFt539008697; Sat, 20 Jun 2009 08:55:05 -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: Sat, 20 Jun 2009 15:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3628 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12455128297776 (code B ref -1); Sat, 20 Jun 2009 15:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Jun 2009 15:47:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5KFl3Dp007759 for ; Sat, 20 Jun 2009 08:47:04 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:54604) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MI2mU-0006sy-C3 for emacs-pretest-bug@gnu.org; Sat, 20 Jun 2009 11:47:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MI2mS-00063G-J2 for emacs-pretest-bug@gnu.org; Sat, 20 Jun 2009 11:47:02 -0400 Original-Received: from mail-ew0-f220.google.com ([209.85.219.220]:49440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MI2mS-000633-8s for emacs-pretest-bug@gnu.org; Sat, 20 Jun 2009 11:47:00 -0400 Original-Received: by ewy20 with SMTP id 20so242517ewy.42 for ; Sat, 20 Jun 2009 08:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7jvG5uPpWJURP7oBC7HhYKlg05qjZi+RyEuYQtSubXI=; b=ZIBNTTVluhSkQAN0uRi7PVpWyPPGHuzJ3RhvwT6qhST8Uq1DFTqDUzK13gu7DfOilu aq+2y3SlW9R8Uq6fzcT95Kp9yU7BpAyuyQ9KCjTiToDTuKAEJGxr/2lUXWPhD+Qw8GRo BB5MO2CBGu9/GbCa/T08mpt01NUtOstoJUQu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=FiOKveYHRFgIQlo0qtVQyBHPhp+7e6ccsv6ElhfQzsBvyfpVVIXpy3WlqW8ZqKyagR Pop7/mr1/KqTxIRF/WxsGT/2vtWdq0HlPX3KtWb6P2V+GusR4keHa9AVNJD9SLdq/d7r +DrdZ3+ZZm1XOv+2KQfwmSaKlcLKarBjxA6pM= Original-Received: by 10.210.135.20 with SMTP id i20mr2214788ebd.69.1245512818924; Sat, 20 Jun 2009 08:46:58 -0700 (PDT) X-Google-Sender-Auth: 476b9fd00c74fead X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 20 Jun 2009 11:57:28 -0400 X-Mailman-Approved-At: Sat, 20 Jun 2009 13:37:19 -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:28866 gmane.emacs.pretest.bugs:24665 Archived-At: In my .emacs file I turn off global font lock: (global-font-lock-mode 0) The effect is to turn syntax highlighting OFF in modes where there would normally be syntax highlighting by default. The result in emacs 22.1.1 was to remove syntax highlighting from Perl, C, and Python files. In emacs 23.0.95.1 (build details below), this no longer works for Python files. That is to say, various *.py files that I've tested have syntax highlighting ON when I edit them in emacs with a normal command: $ emacs example.py $ emacs api.py Perl and C files have syntax highlighting OFF, on the other hand. When editing one of the Python files, syntax highlighting can be turned OFF by using the following procedure: M-x eval-expression (global-font-lock-mode 0) In other words, by evaluating the expression from my .emacs file manually. On repeating the expression, syntax highlighting remains OFF, so it is apparently not acting as a toggle. When I use emacs -q, syntax highlighting is ON by default when editing any Perl, C, or Python file as expected. I've tried using different positions for the global font lock line in my .emacs file, moving it to the top, to the middle, and to the bottom, and that has no effect: syntax highlighting is always ON in Python-Mode. My full .emacs file is available here: http://inamidst.com/config/emacs I'm using the following version of emacs from CVS: GNU Emacs 23.0.95.1 (i386-apple-darwin8.11.1, X toolkit) of 2009-06-20 Compiled with: $ ./configure --prefix=$PACKAGES/emacs \ --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no And there doesn't appear to be any mention of this bug in etc/PROBLEMS; I also asked in #emacs on freenode about this bug before they advised me to file this bug by email. Thanks, -- Sean B. Palmer, http://inamidst.com/sbp/