diff lisp/progmodes/python.el @ 56051:0cecb3d4d566

(python-open-block-statement-p): Fix indentation after a block opening that contains a comment.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 12 Jun 2004 10:26:37 +0000
parents 5dbde1bf6cad
children e6bf7376c962 4c90ffeb71c5
line wrap: on
line diff
--- a/lisp/progmodes/python.el	Sat Jun 12 10:16:10 2004 +0000
+++ b/lisp/progmodes/python.el	Sat Jun 12 10:26:37 2004 +0000
@@ -323,7 +323,8 @@
 				     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.