]> granicus.if.org Git - python/commitdiff
(py-statement-closes-block-p): py-goto-initial-line could leave us in
authorBarry Warsaw <barry@python.org>
Thu, 3 Jun 1999 22:18:59 +0000 (22:18 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 3 Jun 1999 22:18:59 +0000 (22:18 +0000)
the line's whitespace.  back-to-indentation should /follow/ this call.

Misc/python-mode.el

index 924c2c703212deddfcbba8176c63f8abf31d94d7..d30c1b37bc219527413573edda1296eba248a611 100644 (file)
@@ -150,7 +150,7 @@ you're editing someone else's Python code."
 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 @@ be at the start of a statement."
 I.e., if the line starts with `return', `raise', `break', `continue',
 and `pass'.  This doesn't catch embedded statements."
   (let ((here (point)))
-    (back-to-indentation)
     (py-goto-initial-line)
+    (back-to-indentation)
     (prog1
        (looking-at (concat py-block-closing-keywords-re "\\>"))
       (goto-char here))))