diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index eb3e31c4b77..188bc973d99 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1070,12 +1070,18 @@ possibilities can be narrowed to specific indentation points." | |||
| 1070 | (`(,(or :after-line | 1070 | (`(,(or :after-line |
| 1071 | :after-comment | 1071 | :after-comment |
| 1072 | :inside-string | 1072 | :inside-string |
| 1073 | :after-backslash | 1073 | :after-backslash) . ,start) |
| 1074 | :inside-paren-at-closing-paren | ||
| 1075 | :inside-paren-at-closing-nested-paren) . ,start) | ||
| 1076 | ;; Copy previous indentation. | 1074 | ;; Copy previous indentation. |
| 1077 | (goto-char start) | 1075 | (goto-char start) |
| 1078 | (current-indentation)) | 1076 | (current-indentation)) |
| 1077 | (`(,(or :inside-paren-at-closing-paren | ||
| 1078 | :inside-paren-at-closing-nested-paren) . ,start) | ||
| 1079 | (goto-char (+ 1 start)) | ||
| 1080 | (if (looking-at "[ \t]*\\(?:#\\|$\\)") | ||
| 1081 | ;; Copy previous indentation. | ||
| 1082 | (current-indentation) | ||
| 1083 | ;; Align with opening paren. | ||
| 1084 | (current-column))) | ||
| 1079 | (`(:inside-docstring . ,start) | 1085 | (`(:inside-docstring . ,start) |
| 1080 | (let* ((line-indentation (current-indentation)) | 1086 | (let* ((line-indentation (current-indentation)) |
| 1081 | (base-indent (progn | 1087 | (base-indent (progn |