On 8/7/07, patrimith <[EMAIL PROTECTED]> wrote:
>
>
> That comment line in Tix.py seems to be specifying information for Emacs
> python-mode.  Is it?
>
> If so, should PyDev even be looking at this at all?
>
> I would venture to say that the warning should not be suppressed. If the
> Emacs specific settings are ignored entirely then the error won't happen
> in
> the first place. Is this a worthwhile approach?
>

Actually, the problem is the way in which the mode for emacs is specified...
the encoding is specified as in PEP 0263 (
http://www.python.org/dev/peps/pep-0263/), which pydev recognizes: match of
the regexp coding[:=]\s*([-\w.]+)

So, it is actually specifying the encoding in a way that should be
recognized as a valid encoding for the file (so, pydev correctly looks at it
when trying to make parses). Looking at:
http://www.delorie.com/gnu/docs/emacs/emacs_220.html it seems that emacs can
end things with 'unix, dos or mac', so, maybe pydev could try to co-exist
with those settings by seeing if it ends with one of those (and ignoring
it).

Cheers,

Fabio
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to