diff Misc/python-mode.el @ 10918:a8a1eb99341c legacy-trunk

(py-statement-closes-block-p): py-goto-initial-line could leave us in the line's whitespace. back-to-indentation should /follow/ this call.
author Barry Warsaw <barry@python.org>
date Thu, 03 Jun 1999 22:18:59 +0000
parents 2669ac7cd76a
children 41fcb40e841f
line wrap: on
line diff
--- a/Misc/python-mode.el	Thu Jun 03 14:32:16 1999 +0000
+++ b/Misc/python-mode.el	Thu Jun 03 22:18:59 1999 +0000
@@ -150,7 +150,7 @@
 When this variable is non-nil, two things happen when a buffer is set
 to `python-mode':
 
-    1. `py-indent-offset' is guess from existing code in the buffer.
+    1. `py-indent-offset' is guessed from existing code in the buffer.
        Only guessed values between 2 and 8 are considered.  If a valid
        guess can't be made (perhaps because you are visiting a new
        file), then the value in `py-indent-offset' is used.
@@ -2929,8 +2929,8 @@
 I.e., if the line starts with `return', `raise', `break', `continue',
 and `pass'.  This doesn't catch embedded statements."
   (let ((here (point)))
+    (py-goto-initial-line)
     (back-to-indentation)
-    (py-goto-initial-line)
     (prog1
 	(looking-at (concat py-block-closing-keywords-re "\\>"))
       (goto-char here))))