From: Eli Zaretskii Date: Sat, 12 Jun 2004 10:26:37 +0000 (+0000) Subject: (python-open-block-statement-p): Fix X-Git-Tag: ttn-vms-21-2-B4~5813 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cebe0988cac635c51031540fc173794c3db79a16;p=emacs.git (python-open-block-statement-p): Fix indentation after a block opening that contains a comment. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index cee59a6e3e1..274480a36de 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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.