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

From: Alex Kost <[email-masked]>
Date: Mon, 19 Oct 2015 14:15:59 +0300

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