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.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 740dfee5870..d5126fa8881 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3107,7 +3107,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
3107 (end-of-line) 3107 (end-of-line)
3108 (when (not (python-syntax-context 'paren)) 3108 (when (not (python-syntax-context 'paren))
3109 (skip-syntax-backward "^)"))) 3109 (skip-syntax-backward "^)")))
3110 (while (python-syntax-context 'paren) 3110 (while (and (python-syntax-context 'paren)
3111 (not (eobp)))
3111 (goto-char (1+ (point-marker)))) 3112 (goto-char (1+ (point-marker))))
3112 (point-marker))) 3113 (point-marker)))
3113 (let ((paragraph-start "\f\\|[ \t]*$") 3114 (let ((paragraph-start "\f\\|[ \t]*$")
@@ -3118,7 +3119,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
3118 (while (not (eobp)) 3119 (while (not (eobp))
3119 (forward-line 1) 3120 (forward-line 1)
3120 (python-indent-line) 3121 (python-indent-line)
3121 (goto-char (line-end-position)))) t) 3122 (goto-char (line-end-position))))
3123 t)
3122 3124
3123 3125
3124;;; Skeletons 3126;;; Skeletons