• Joel Rosdahl's avatar
    Fix electric indent bug in python-mode after dedenting colon · a3c79d44
    Joel Rosdahl authored
    * list/progmodes/python.el (python-indent-post-self-insert-function):
    Use markers instead of positions when reindenting statement(s) after
    inserting electric colon to avoid reindenting too many
    statements (bug#22663).
    * test/lisp/progmodes/python-tests.el (python-indent-electric-colon-2):
    Improve test case to also verify the fix of bug#22663.
    Copyright-paperwork-exempt: yes
python.el 221 KB