Broken python-model.el

Skip Montanaro skip at pobox.com
Thu Dec 18 15:01:04 EST 2003


    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





More information about the Python-list mailing list