From 5476e881e1d302bcd40a407de0946d383012384f Mon Sep 17 00:00:00 2001 From: Jules Tamagnan Date: Thu, 27 Oct 2016 15:03:31 -0700 Subject: [PATCH v2 1/3] 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 --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9cebc81bfc..02a2e4046d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1054,13 +1054,13 @@ (defun python-indent--calculate-indentation () (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) -- 2.11.1