diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9a55f337996..3f363f960ed 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -453,7 +453,9 @@ START is the buffer position where the sexp starts." | |||
| 453 | (cons | 453 | (cons |
| 454 | (cond | 454 | (cond |
| 455 | ;; Beginning of buffer | 455 | ;; Beginning of buffer |
| 456 | ((bobp) | 456 | ((save-excursion |
| 457 | (goto-char (line-beginning-position)) | ||
| 458 | (bobp)) | ||
| 457 | 'no-indent) | 459 | 'no-indent) |
| 458 | ;; Inside a paren | 460 | ;; Inside a paren |
| 459 | ((setq start (nth 1 ppss)) | 461 | ((setq start (nth 1 ppss)) |