From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Elliott Newsgroups: gmane.emacs.bugs Subject: bug#15137: python mode patch Date: Mon, 9 Sep 2013 09:15:27 -0500 Message-ID: References: <87fvtqf2ro.fsf@anue.biz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378736241 29537 80.91.229.3 (9 Sep 2013 14:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2013 14:17:21 +0000 (UTC) Cc: "=?UTF-8?Q?Fabi=C3=A1n?= E. Gallina" , 15137@debbugs.gnu.org To: fabian@anue.biz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 09 16:17:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJ2HF-0000UN-UV for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Sep 2013 16:17:18 +0200 Original-Received: from localhost ([::1]:51799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ2HF-0006QB-EN for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Sep 2013 10:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ2H6-0006Jt-Vx for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2013 10:17:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ2H2-0007rN-JY for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2013 10:17:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ2H2-0007rJ-GN for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2013 10:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VJ2H1-00057s-Se for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2013 10:17:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Elliott Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2013 14:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15137 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15137-submit@debbugs.gnu.org id=B15137.137873617719596 (code B ref 15137); Mon, 09 Sep 2013 14:17:03 +0000 Original-Received: (at 15137) by debbugs.gnu.org; 9 Sep 2013 14:16:17 +0000 Original-Received: from localhost ([127.0.0.1]:50589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJ2GH-000560-1P for submit@debbugs.gnu.org; Mon, 09 Sep 2013 10:16:17 -0400 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:50136) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJ2GE-00055l-Dq for 15137@debbugs.gnu.org; Mon, 09 Sep 2013 10:16:15 -0400 Original-Received: by mail-la0-f41.google.com with SMTP id ec20so4928836lab.14 for <15137@debbugs.gnu.org>; Mon, 09 Sep 2013 07:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=e5YY8NTD9p4TiYbWr4GGHEa7iz3cFpAeHVwfDlWM4AE=; b=kT22m2aKzFSVYRdcFeRkjN3WItCal78qzs/91apJj2zOMQKA3b16chDMjofEqTI9JM 9uTinIossQTqNoR1cZgMUyuv0Ey0rmLZS7z/FW+JGpqy/kDiw5l2FBN7j96sLUn7uLbe 8Wvb1pAtldlr7Ax+53Rsr5iG9PTjCO6Je+oP8CWprgHTDXgoxxxNhHglQD+FTB+d9/4g WBh/iIIE9z/cwU00vbycxYFHSF6oNxL3GANP7h4Pft2RXA4DmziN3lP9QNP9DCZq0Ckp Cq8WTmSQie3tOuSjkaV9tI9uaE99ceVNfyh9esu4J2JNRO+stSCHQLZYzSza3HJbEpT7 v8fg== X-Received: by 10.152.9.37 with SMTP id w5mr6932998laa.23.1378736168029; Mon, 09 Sep 2013 07:16:08 -0700 (PDT) Original-Received: by 10.152.25.227 with HTTP; Mon, 9 Sep 2013 07:15:27 -0700 (PDT) In-Reply-To: <87fvtqf2ro.fsf@anue.biz> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78147 Archived-At: Fabian, You are correct on both counts. Please let me know if I can be of assistance to you. Thanks for your time and effort. - dan On Sat, Aug 31, 2013 at 7:44 AM, wrote: > > monnier@iro.umontreal.ca writes: > >>> ! (buffer-substring start end)) >> [...] >>> ! ;; wrap with a conditional to avoid errors about python unexpecte= d indentation >>> ! "if True:\n" >>> ! (buffer-substring start end) >>> ! "\n") >> >> That looks pretty good, thank you. >> Fabi=E1n, could you take a look? >> > > The idea is good but the patch needs bit more of work -- this approach > will work when an indented region is sent but won't when sending a > region which starts with no indentation at all. Also backtraces numbers > will be wrong for a -1 offset. > > I'll push something for this soon. > > > Regards, > Fabi=E1n.