diff options
| author | Jules Tamagnan | 2016-10-27 15:03:31 -0700 |
|---|---|---|
| committer | Noam Postavsky | 2017-05-28 23:33:25 -0400 |
| commit | c9097e9b5f5e427c7d2438db9aad190222882aa1 (patch) | |
| tree | c25d968cbf60fbf99ba282909d87d9d685401f7a /lisp/progmodes/python.el | |
| parent | c5cde97ba3a28f3a55a6584c78a7455712a77825 (diff) | |
| download | emacs-c9097e9b5f5e427c7d2438db9aad190222882aa1.tar.gz emacs-c9097e9b5f5e427c7d2438db9aad190222882aa1.zip | |
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
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 1048 | (max line-indentation base-indent))) | 1048 | (max line-indentation base-indent))) |
| 1049 | (`(,(or :after-block-start | 1049 | (`(,(or :after-block-start |
| 1050 | :after-backslash-first-line | 1050 | :after-backslash-first-line |
| 1051 | :after-backslash-assignment-continuation | ||
| 1051 | :inside-paren-newline-start) . ,start) | 1052 | :inside-paren-newline-start) . ,start) |
| 1052 | ;; Add one indentation level. | 1053 | ;; Add one indentation level. |
| 1053 | (goto-char start) | 1054 | (goto-char start) |
| 1054 | (+ (current-indentation) python-indent-offset)) | 1055 | (+ (current-indentation) python-indent-offset)) |
| 1055 | (`(,(or :inside-paren | 1056 | (`(,(or :inside-paren |
| 1056 | :after-backslash-block-continuation | 1057 | :after-backslash-block-continuation |
| 1057 | :after-backslash-assignment-continuation | ||
| 1058 | :after-backslash-dotted-continuation) . ,start) | 1058 | :after-backslash-dotted-continuation) . ,start) |
| 1059 | ;; Use the column given by the context. | 1059 | ;; Use the column given by the context. |
| 1060 | (goto-char start) | 1060 | (goto-char start) |