# HG changeset patch # User Eli Zaretskii # Date 1087035997 0 # Node ID 0cecb3d4d5661539c5ab5fdeb27b46724a9612c7 # Parent a7650e060db16019386410ce06b583badcbac243 (python-open-block-statement-p): Fix indentation after a block opening that contains a comment. diff -r a7650e060db1 -r 0cecb3d4d566 lisp/progmodes/python.el --- 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.