mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-08 15:35:02 +00:00
Fix comment/else indentation problem in python-mode
* lisp/progmodes/python.el (python-info-dedenter-opening-block-positions): Fix indentation of "else" after a comment (bug#56742).
This commit is contained in:
parent
27b5ab80ec
commit
dc84264f3c
@ -5171,7 +5171,8 @@ likely an invalid python file."
|
||||
(while (and (< (point) cur-line)
|
||||
(setq no-back-indent
|
||||
(or (> (current-indentation) indentation)
|
||||
(python-info-current-line-empty-p))))
|
||||
(python-info-current-line-empty-p)
|
||||
(python-info-current-line-comment-p))))
|
||||
(forward-line)))
|
||||
no-back-indent)))
|
||||
(setq collected-indentations
|
||||
|
Loading…
Reference in New Issue
Block a user