Mercurial > emacs
changeset 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 | a7650e060db1 |
children | aec6fce52afb |
files | lisp/progmodes/python.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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.