There are two typos in the definition of the variable `electric-indent-functions-without-reindent' in lisp/electric.el: - its docstring mentions a non existing `line-indent-function' instead of the correct `indent-line-function'; - its value contains a reference to a non existing `py-indent-line' function, that should really be `python-indent-line-function'. The attached patch fixes both issues.