From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: No syntax highlighting in python mode Date: Mon, 10 May 2010 13:42:16 -0500 Organization: AkWebsoft Message-ID: References: Reply-To: tim@johnsons-web.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291825397 10677 80.91.229.12 (8 Dec 2010 16:23:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:23:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:23:13 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQMnQ-0003ik-C7 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:23:12 +0100 Original-Received: from localhost ([127.0.0.1]:50824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQMnP-0003Ho-Fe for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:23:11 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 10 May 2010 13:42:16 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.9p1 (Linux) Original-Lines: 34 Original-X-Trace: sv3-SBju0e5q+7TTOjvTnnnr0qv6x2gK9gKAjbtY8kv0AK5nm4aT1Q7WNlLe9YW1xyn+gw51/x8ruJC3Lv2!qsED4O30yv53V527KrCwgnS+gWFNspUXgUbV3MS8j9vZ2uU8VUpoKOAw0yZ7aEDFyulkEgE= Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:178105 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75601 Archived-At: On 2010-05-10, Tim Johnson wrote: > I'm using GNU Emacs 23.1.1 on Slackware linux 13.0 32-bit. > Syntax highlighting does not work. The only thing highlighted are > strings. Not even function definitions. > > I've tried add-hook with > (setq font-lock-maximum-decoration > '((python-mode . 3))) > > I've started emacs with a python file and --debug-init > with no messages that suggest any type of error. > > c-h, v font-lock-maximum-decoration gives me > [no match] > > Any suggestions would be appreciated. Other programming > modes work fine. Other python mode functions appear to > work as expected. Hmm! See http://www.emacswiki.org/emacs/PythonMode where is says: """ Emacs post version 21 has its own python mode (python.el). This is enabled by default for .py files so you don?t have to add anything to your InitFile to use it. """ I believe the statement above is incorrect. I had to use the require form - I.E. (require 'python) to activate the syntax highlighting. cheers -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com