[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c9097e9 1/3: Comply with pep 8 style guide for back
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master c9097e9 1/3: Comply with pep 8 style guide for backslash in assignment (Bug#24809) |
Date: |
Sun, 28 May 2017 23:33:10 -0400 (EDT) |
branch: master
commit c9097e9b5f5e427c7d2438db9aad190222882aa1
Author: Jules Tamagnan <address@hidden>
Commit: Noam Postavsky <address@hidden>
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 2697f1a..4eecfba 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)