bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: python-find-imports fails on multi-line import statements


From: Michael Droettboom
Subject: Re: python-find-imports fails on multi-line import statements
Date: Sat, 8 Sep 2007 06:05:46 -0400

The emacs version is 22.5.1

On 9/7/07, Michael Droettboom <address@hidden> wrote:
> 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/
>


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




reply via email to

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