From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Evgeniy Sharapov Newsgroups: gmane.emacs.bugs Subject: bug#28051: Multiline Statement Indentation Error in Inferior Python Mode Date: Fri, 11 Aug 2017 14:19:18 -0400 Message-ID: References: <56pwp6ayq3x.fsf@nn-esharapov-04.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114047ce2d2ce105567e5bed" X-Trace: blaine.gmane.org 1502475623 31223 195.159.176.226 (11 Aug 2017 18:20:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 18:20:23 +0000 (UTC) To: 28051@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 11 20:20:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgEXa-0007Kd-3P for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Aug 2017 20:20:10 +0200 Original-Received: from localhost ([::1]:35093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgEXg-0007dp-Bl for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Aug 2017 14:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgEXW-0007XV-5T for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2017 14:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgEXT-0004sd-0f for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2017 14:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgEXS-0004sV-T4 for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2017 14:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dgEXS-0006cc-HT for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2017 14:20:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <56pwp6ayq3x.fsf@nn-esharapov-04.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Evgeniy Sharapov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Aug 2017 18:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28051-submit@debbugs.gnu.org id=B28051.150247558825429 (code B ref 28051); Fri, 11 Aug 2017 18:20:02 +0000 Original-Received: (at 28051) by debbugs.gnu.org; 11 Aug 2017 18:19:48 +0000 Original-Received: from localhost ([127.0.0.1]:55972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgEXE-0006c5-CA for submit@debbugs.gnu.org; Fri, 11 Aug 2017 14:19:48 -0400 Original-Received: from mail-qt0-f176.google.com ([209.85.216.176]:34288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgEXB-0006bq-3X for 28051@debbugs.gnu.org; Fri, 11 Aug 2017 14:19:46 -0400 Original-Received: by mail-qt0-f176.google.com with SMTP id s6so25644691qtc.1 for <28051@debbugs.gnu.org>; Fri, 11 Aug 2017 11:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xMFGXZ/hfDXtFR660AsvJK40neeDsGXUE6hjCrUFP38=; b=DFwIZxtqvOfHVtfqNuJ0BaL38x8/EU4yAv6Kmgrx9e84Z9JVU+iIrfiZWwWBDODVsR WNZo6jQE6JLaSWWcYrj9+jgybCVdJLtZYFXetFXo+09T7fOw3w9CkZHGfyHtT/v6ajzS H1UlTWcclZhyN5vHow/Y/hw+Rh3+nnY/ELO2ZDkuDqD5FBl8dFIwmM41BxuZRMHramb6 n5hGgiM0EeJM4zpnkILkFtrjVRopErH6HC9FBdLQx58ED+eaePvQYbPEsOIFIzdnd2At lLc186ClZDtAuD+ysHYai1wY0Fm8vFIhyvATm4OYB8TzICLEkR3/I7qEuTigozOCC5bZ JkaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xMFGXZ/hfDXtFR660AsvJK40neeDsGXUE6hjCrUFP38=; b=SKs8KM1xfNgpX/PX6w6BxQXbAACKuWR9CO3pkBpC57h7mnTdrkzLsIp0MiVhIWbDGH NpEB+UaD6MdvIxT+F718lp4nzsVmPtzyauhme+Gg+0tK6wTYt/UjUtUmJ9lomel07vnf 6g5DMQY5COmyrnP9/p8c2oJ0oNGx7Or5w7n9hiRzq0C3ZTix2lPsFWo9WUEtdU4TLHJV uVAYwicavBHZWnQ9j87Evn4h5gYO433YedaouTDnYdGpEbgnAaSAVEg89ZN26td3MAbi HFXoifXHMt9iRvCbnew+um0v+SEo+GykPcBotAeV2hR5c2ekHlCZokUZkpxatBpCJpG9 8UBA== X-Gm-Message-State: AHYfb5jgZ3MIzLMBA1g3OfE2Gf7rk9GuqBClwMt4dtKMHWnP4IV/hXmd 3Yl9hg29a0+vXOSxJW1uffgXbMYNw5BFaWg= X-Received: by 10.200.37.110 with SMTP id 43mr23219801qtn.10.1502475579106; Fri, 11 Aug 2017 11:19:39 -0700 (PDT) Original-Received: by 10.237.42.123 with HTTP; Fri, 11 Aug 2017 11:19:18 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:135663 Archived-At: --001a114047ce2d2ce105567e5bed Content-Type: text/plain; charset="UTF-8" Reproducing this bug with plain Emacs 1. Start emacs without any .emacs or .emacs.d/init.el files 2. Start Inferior python mode by M-x run-python 3. Enter first line of multi-line statement, press Enter and then start entering second line >>> for x in range(10): ...pri 4. Now press C-M-i, it will complete it to `print`, then enter x so the second line looks like ... print x 5. Now press Enter instead of a ... prompt you should get an error >>> for x in range(10): ... print x File "", line 1 print x ^ IndentationError: unexpected indent >>> ========================================== Evgeniy N. Sharapov Phone: (630) - 779 - 3208 --001a114047ce2d2ce105567e5bed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Reproducing this bug with plain Emacs

<= /div>
1. Start emacs without any .emacs or .emacs.d/init.el files=C2=A0=
2. Start Inferior python mode by M-x run-python
3. Ent= er first line of multi-line statement, press Enter and then start entering = second line

>>> for x in range(10):<RE= T>
...<TAB>pri

4. Now press C-M= -i, it will complete it to `print`, then enter x so the second line looks l= ike=C2=A0

... =C2=A0 =C2=A0 print x

=
5. Now press Enter

instead of a ... pro= mpt you should get an error=C2=A0


<= div>>>> for x in range(10):
... =C2=A0 =C2=A0 print x
=C2=A0 File "<stdin>", line 1
=C2=A0 =C2= =A0 print x
=C2=A0 =C2=A0 ^
IndentationError: unexpecte= d indent
>>>=C2=A0



=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=C2=A0 Evgeniy N. Sharapov
=C2= =A0 Phone: (630) - 779 - 3208
=C2=A0
--001a114047ce2d2ce105567e5bed--