From: Jules Tamagnan Date: Thu, 27 Oct 2016 22:03:31 +0000 (-0700) Subject: Comply with pep 8 style guide for backslash in assignment (Bug#24809) X-Git-Tag: emacs-26.0.90~521^2~240 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9097e9b5f5e427c7d2438db9aad190222882aa1;p=emacs.git Comply with pep 8 style guide for backslash in assignment (Bug#24809) * lisp/progmodes/python.el (python-indent--calculate-indentation): Increase indent by `python-indent-offset' after `:after-backslash-assignment-continuation'. Copyright-paperwork-exempt: yes --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2697f1a3107..4eecfba2e7e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1048,13 +1048,13 @@ possibilities can be narrowed to specific indentation points." (max line-indentation base-indent))) (`(,(or :after-block-start :after-backslash-first-line + :after-backslash-assignment-continuation :inside-paren-newline-start) . ,start) ;; Add one indentation level. (goto-char start) (+ (current-indentation) python-indent-offset)) (`(,(or :inside-paren :after-backslash-block-continuation - :after-backslash-assignment-continuation :after-backslash-dotted-continuation) . ,start) ;; Use the column given by the context. (goto-char start)