GNU bug report logs - #22663
25.0.91; python.el electric-indent misbehaviour with 'except:'

Previous Next

Package: emacs;

Reported by: Matthew Woodcraft <matthew <at> woodcraft.me.uk>

Date: Sun, 14 Feb 2016 17:14:02 UTC

Severity: minor

Tags: patch

Found in version 25.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Joel Rosdahl <joel <at> rosdahl.net>
To: 22663 <at> debbugs.gnu.org
Subject: bug#22663: python-mode: Fix electric indent bug after dedenting colon
Date: Sun, 12 Feb 2017 16:11:41 +0100
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[0001-python-mode-Fix-electric-indent-bug-after-dedenting-.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.