Subject: bug#21705: 25.0.50; error while entering trivial Python program

From: Alex Kost <[email-masked]>
Date: Tue, 20 Oct 2015 20:58:00 +0300

Eric Hanchrow (2015-10-19 16:08 +0300) wrote:

> Yes, sorry... Completion fail :-)

No problem, it happens :-)

> On Mon, Oct 19, 2015, 4:15 AM Alex Kost <[email-masked]> wrote:
>
>     Eric Hanchrow (2015-10-19 03:23 +0300) wrote:
>
>     >     C-x C-f /tmp/wat.py RET
>     >     M-x toggle-debug-on-error RET
>     >     x = [ RET
>     >
>     > That leads to this error:
>     >
>     >     Debugger entered--Lisp error: (wrong-type-argument
>     > number-or-marker-p nil)
>     >       python-indent-context()
>     >       python-indent--calculate-indentation()
>     >       python-indent-calculate-indentation(nil)
>     >       python-indent-line(nil)
>     >       python-indent-line-function()
>     >       indent-according-to-mode()
>     >       electric-indent-post-self-insert-function()
>     >       self-insert-command(1)
>     >       newline(nil 1)
>     >       funcall-interactively(newline nil 1)
>     >       call-interactively(newline nil nil)
>     >       command-execute(newline)
>
>     Is this message intended for <[email-masked]>?
>
>     --
>     Alex

I received this reply privately, so I CC this message to debbugs for
those who have the rights to close this bug, thanks.

--
Alex