Comment 1 for bug 837065

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Barry,

can't see the bug. Maybe we must negotiate what "electric" means or should mean in the context.

As Emacs can't know reliable what the wished indent will be, it can only guess. So electric indents to the outmost reasonable indent. It leaves point at the current-indent column, to enable a backspace.

Result here is:

class TestJoin(unittest.TestCase):
    def tearDown(self):
        reset_the_world()

        def join_user_with_bogus_id(self):

After electric indent it ends up as above, BTW as you described.
So in the example given, if you don't want a further indent, don't call electric colon, but simple colon
C-u :

? :)

Cheers,

Andreas