Broken python-model.el

Peter Milliken PeterM at resmed.com.au
Thu Dec 18 21:38:07 CET 2003


G'Day Skip,

Sorry mate, I haven't been following the progress of python-mode.el at
sourceforge. I have been using 4.6 (warts and all) and just followed up John
Lee's reference. 

So I don't even know what the "trailing builtin" problem is :-) All I know
is that I don't like the way python-mode.el (currently) tries to find
shadowed builtins. I would hardly call highlighting the "ord" in
"swimrecord" as showing a shadowed builtin :-) I found the current mechanism
highly annoying to be honest as it distracts rather than enhances.

Good luck with your efforts though and I'll certainly keep an eye on the
progress there at sourceforge now that I know about it.

Peter

-----Original Message-----
From: Skip Montanaro [mailto:skip at pobox.com]
Sent: Friday, December 19, 2003 7:01 AM
To: Peter Milliken
Cc: python-list at python.org
Subject: Re: Broken python-model.el



    Peter> Initial impressions is that I will re-download the 4.6 version
    Peter> available from the python web-site. One of the annoying things
    Peter> that hits you right in the face (and this is terribly unfair to
    Peter> the sourceforge team working on it! - it hasn't been released
    Peter> after all :-)) is the "blind" fontification of what are believed
    Peter> to be Python keywords by the authors.

    Peter> This list includes words such as "Exception", "ord", "self" plus
    Peter> a host of others. So variables that I have such as "swimrecord"
    Peter> has the "ord" portion font coloured differently from the rest of
    Peter> the string, "ChildException" has the "Exception" differently
    Peter> coloured than the "Child" portion, "self" is a different colour
    Peter> from the rest of the variable usage i.e. self.Name has "self" and
    Peter> "Name" colourised differently - extremely annoying and *not* what
    Peter> I expect the authors want to achieve! Certainly not what I want
    Peter> in an edit session! :-)

That's a feature I added recently.  It's intended to highlight variables
which might be shadowing builtins.  Eventually, it should be a
user-configurable feature.  I checked in a fix to the "trailing builtin"
problem a couple days ago.  Have you tried that yet?

Skip


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
 
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.






More information about the Python-list mailing list