all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lowell Gilbert <lgusenet@be-well.ilk.org>
To: help-gnu-emacs@gnu.org
Subject: Re: No syntax highlighting in python mode
Date: Mon, 10 May 2010 16:19:57 -0400	[thread overview]
Message-ID: <44hbmfldaq.fsf@be-well.ilk.org> (raw)
In-Reply-To: slrnhugkeu.78s.tim@bart.johnson.com

Tim Johnson <tim@johnsons-web.com> writes:

> On 2010-05-10, Tim Johnson <tim@johnsons-web.com> 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.

I can't reproduce that.  In fact:

emacs -q /usr/share/yum-cli/yumcommands.py

gives me python-mode *with* syntax color.  
[Also on 23.1.1]


  reply	other threads:[~2010-05-10 20:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10  1:42 No syntax highlighting in python mode Tim Johnson
2010-05-10 18:42 ` Tim Johnson
2010-05-10 20:19   ` Lowell Gilbert [this message]
2010-05-11  0:42     ` Tim Johnson
2010-05-11 14:35       ` Lowell Gilbert
2010-05-12 15:42         ` Tim Johnson

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=44hbmfldaq.fsf@be-well.ilk.org \
    --to=lgusenet@be-well.ilk.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.