GNU bug report logs - #28051
[w32 / python "legacy" completion] Multiline Statement Indentation Error

Previous Next

Package: emacs;

Reported by: evgeniy.sharapov <at> gmail.com

Date: Fri, 11 Aug 2017 17:55:02 UTC

Severity: normal

Tags: confirmed, patch

Found in version 25.2

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #8 received at 28051 <at> debbugs.gnu.org (full text, mbox):

From: Evgeniy Sharapov <evgeniy.sharapov <at> gmail.com>
To: 28051 <at> debbugs.gnu.org
Subject: Multiline Statement Indentation Error in Inferior Python Mode
Date: Fri, 11 Aug 2017 14:19:18 -0400
[Message part 1 (text/plain, inline)]
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):<RET>
...<TAB>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 "<stdin>", line 1
    print x
    ^
IndentationError: unexpected indent
>>>



==========================================
  Evgeniy N. Sharapov
  Phone: (630) - 779 - 3208
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.