]> git.eshelyaron.com Git - emacs.git/commitdiff
(python-open-block-statement-p): Fix
authorEli Zaretskii <eliz@gnu.org>
Sat, 12 Jun 2004 10:26:37 +0000 (10:26 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Jun 2004 10:26:37 +0000 (10:26 +0000)
indentation after a block opening that contains a comment.

lisp/progmodes/python.el

index cee59a6e3e14dee78111c74a9cd99259420e8dee..274480a36deed90452b2eaebaabaa5658ac5cdca 100644 (file)
@@ -323,7 +323,8 @@ BOS non-nil means point is known to be at beginning of statement."
                                     line-end))
                            (save-excursion (python-end-of-statement))
                            t)
-        (not (python-in-string/comment)))))
+        (not (progn (goto-char (match-beginning 0))
+                    (python-in-string/comment))))))
 
 (defun python-close-block-statement-p (&optional bos)
   "Return non-nil if current line is a statement closing a block.