aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f31832fec9c..ec7d6572200 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1459,8 +1459,11 @@ With positive ARG search backwards, else search forwards."
1459 (current-indentation))) 1459 (current-indentation)))
1460 (body-indentation 1460 (body-indentation
1461 (and (> arg 0) 1461 (and (> arg 0)
1462 (or (and (python-info-looking-at-beginning-of-defun) 1462 (or (and (python-info-looking-at-beginning-of-defun nil t)
1463 (+ (current-indentation) python-indent-offset)) 1463 (+ (save-excursion
1464 (python-nav-beginning-of-statement)
1465 (current-indentation))
1466 python-indent-offset))
1464 (save-excursion 1467 (save-excursion
1465 (while 1468 (while
1466 (and 1469 (and