From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Michael Droettboom" Newsgroups: gmane.emacs.bugs Subject: Re: python-find-imports fails on multi-line import statements Date: Sat, 8 Sep 2007 06:05:46 -0400 Message-ID: <7b2578730709080305r1adf9fbclcf2da94aeaf89c61@mail.gmail.com> References: <7b2578730709071059k1ed3a09dj26eaebc633d0b294@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189246333 25790 80.91.229.12 (8 Sep 2007 10:12:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 10:12:13 +0000 (UTC) Cc: fx@gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 12:12:14 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITxIT-0002TQ-J9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 12:12:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITxIR-0000in-9I for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 06:12:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITxCK-0006wA-C6 for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 06:05:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITxCI-0006vS-2E for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 06:05:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITxCF-0006v0-NH for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 06:05:47 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITxCF-0002hz-9B for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 06:05:47 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so577784rvf for ; Sat, 08 Sep 2007 03:05:46 -0700 (PDT) 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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=JtD9FeZfVaczaugxpLisaEKeyQZ1u4u745z810krgvg=; b=qNQgIv3SFvIrZBgaSET3NOnNVFcuqeYLkSgUBagPVCEfb6qwoc462KtpGpXXUg4HOsU/nStAvm11UIZ73kVm+F8eX4SQ+LtSzXSjL/UHGklmOWM//qCIj05XivI1hZ2azzleJz29F5AXyGZ6uBOBd9obfmkq+ckr5Oamzexonbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=gawI582JcPpkbndHtkmnWEGVoBaTo1YcjkTkeckSDFIltBCVGMPr9RKXBlaf0jdDjocgeIwLHXSCRpFGUnA57lU6J1guE/YUeIdGGWmzSySQ9Ihz1hPJaTd79nilu6458npORDDwvy8b/KNkxUWvSmjSijvy5KAyDBGtSYiVg2c= Original-Received: by 10.141.51.15 with SMTP id d15mr1093218rvk.1189245946865; Sat, 08 Sep 2007 03:05:46 -0700 (PDT) Original-Received: by 10.141.84.18 with HTTP; Sat, 8 Sep 2007 03:05:46 -0700 (PDT) In-Reply-To: <7b2578730709071059k1ed3a09dj26eaebc633d0b294@mail.gmail.com> Content-Disposition: inline X-Google-Sender-Auth: 5ad3aa31d8acd482 X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16506 Archived-At: The emacs version is 22.5.1 On 9/7/07, Michael Droettboom 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/