diff options
| author | Eli Zaretskii | 2004-06-12 10:26:37 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-06-12 10:26:37 +0000 |
| commit | cebe0988cac635c51031540fc173794c3db79a16 (patch) | |
| tree | c8ef85ddd7b8f8f4c7b52298db6f8cfe77725e4f /lisp/progmodes/python.el | |
| parent | 7c226e4010262aa37501a29ecd4846647ded8ec8 (diff) | |
| download | emacs-cebe0988cac635c51031540fc173794c3db79a16.tar.gz emacs-cebe0988cac635c51031540fc173794c3db79a16.zip | |
(python-open-block-statement-p): Fix
indentation after a block opening that contains a comment.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 323 | line-end)) | 323 | line-end)) |
| 324 | (save-excursion (python-end-of-statement)) | 324 | (save-excursion (python-end-of-statement)) |
| 325 | t) | 325 | t) |
| 326 | (not (python-in-string/comment))))) | 326 | (not (progn (goto-char (match-beginning 0)) |
| 327 | (python-in-string/comment)))))) | ||
| 327 | 328 | ||
| 328 | (defun python-close-block-statement-p (&optional bos) | 329 | (defun python-close-block-statement-p (&optional bos) |
| 329 | "Return non-nil if current line is a statement closing a block. | 330 | "Return non-nil if current line is a statement closing a block. |