bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22663: python-mode: Fix electric indent bug after dedenting colon


From: Joel Rosdahl
Subject: bug#22663: python-mode: Fix electric indent bug after dedenting colon
Date: Sun, 12 Feb 2017 16:11:41 +0100

This fixes bug #22663 ("25.0.91; python.el electric-indent misbehaviour
with 'except:'"). Note that the bug is not restricted to "except:" but
affects all statements that are dedented by an electric colon.

For instance, entering a colon after "else" in

    if do:
        something()
        else
    outside

results in

    if do:
        something()
    else:
        outside

before the bug fix but

    if do:
        something()
    else:
    outside

after the bug fix.

-- Joel

Attachment: 0001-python-mode-Fix-electric-indent-bug-after-dedenting-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]