emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: python-find-imports fails on multi-line import statement


From: Richard Stallman
Subject: address@hidden: python-find-imports fails on multi-line import statements]
Date: Sat, 08 Sep 2007 22:13:08 -0400

This is in the Emacs 22.1 release.  Would someone please DTRT, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
        autolearn=failed version=3.1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta;
        
h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth;
        bh=dwlCeqvd6hnIp6NTULikImyT3NFwA3yNsqr2gVWYbQ8=;
        
b=P60WPrBWsQNJo+GCWEy8Pf1XR9IEeHmcNmmfvHvbZ38THdmIJcZq5AnabtkkaSWvoHRKeV2TpZ8s0fYPtAm1hiqvSZIgCLmw8nWkzOtYZ4MvWSG5rF58BsCGoRllNrRGKNff2658p0ne+yqFUuGLMtRnzQKbXD+Jw7BAlH8Ue/c=
Date: Fri, 7 Sep 2007 13:59:53 -0400
From: "Michael Droettboom" <address@hidden>
To: address@hidden
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Cc: address@hidden
Subject: python-find-imports fails on multi-line import statements

Python allows the '\' character to be used to break statements onto
multiple lines.

If I have a group of import statements like

from foo import this, that, other_thing \
   and_another_thing
import sys

python-find-imports parses this into

from foo import this, that, other_thing \
import sys

When python-complete-symbol is called and this is passed to complete()
in emacs.py, for instance, it executes this string, which contains a
syntax error, and the autocompletion fails.

I imagine this can be fixed by tinkering with the regular
expressions/filtering in python-find-imports, but I'm not much of an
emacs lisp hacker.

Cheers,
Mike

- -- 
Michael Droettboom
http://www.droettboom.com/


_______________________________________________
bug-gnu-emacs mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]