From: "Michael Droettboom" <mike@droettboom.com>
To: bug-gnu-emacs@gnu.org
Cc: fx@gnu.org
Subject: Re: python-find-imports fails on multi-line import statements
Date: Sat, 8 Sep 2007 06:05:46 -0400 [thread overview]
Message-ID: <7b2578730709080305r1adf9fbclcf2da94aeaf89c61@mail.gmail.com> (raw)
In-Reply-To: <7b2578730709071059k1ed3a09dj26eaebc633d0b294@mail.gmail.com>
The emacs version is 22.5.1
On 9/7/07, Michael Droettboom <mike@droettboom.com> 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/
next prev parent reply other threads:[~2007-09-08 10:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 17:59 python-find-imports fails on multi-line import statements Michael Droettboom
2007-09-08 10:05 ` Michael Droettboom [this message]
2007-09-08 11:54 ` Dave Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b2578730709080305r1adf9fbclcf2da94aeaf89c61@mail.gmail.com \
--to=mike@droettboom.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=fx@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.