unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Fwd: python-find-imports fails on multi-line import statements
       [not found] <E1IUCIO-0008Gv-GW@fencepost.gnu.org>
@ 2007-09-10 20:03 ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2007-09-10 20:03 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

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

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" <mike@droettboom.com>
> To: bug-gnu-emacs@gnu.org
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Disposition: inline
> Cc: fx@gnu.org
> 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
> bug-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
> ------- End of forwarded message -------


> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-10 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1IUCIO-0008Gv-GW@fencepost.gnu.org>
2007-09-10 20:03 ` Fwd: python-find-imports fails on multi-line import statements Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).