all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* python-find-imports fails on multi-line import statements
@ 2007-09-07 17:59 Michael Droettboom
  2007-09-08 10:05 ` Michael Droettboom
  2007-09-08 11:54 ` Dave Love
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Droettboom @ 2007-09-07 17:59 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: fx

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-08 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-07 17:59 python-find-imports fails on multi-line import statements Michael Droettboom
2007-09-08 10:05 ` Michael Droettboom
2007-09-08 11:54 ` Dave Love

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.