[Top][All Lists]

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

bug#19258: 24.3; Python Mode breaks self-insert-command

From: Stefan Monnier
Subject: bug#19258: 24.3; Python Mode breaks self-insert-command
Date: Tue, 02 Dec 2014 21:07:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Version: 24.4

> Open a file named foo.py.  Enter the following text:

>     f = (
>     if y[]

> Then put the point between the square brackets and type `i', a key
> which is bound to self-insert-command.  Instead of simply inserting an
> `i' as I asked, the whole line will jump to the right several spaces.

That was fixed in 24.4

> This happens because Python Mode has incorrectly put a function into
> `post-self-insert-hook' that randomly messes with the buffer.  There
> is no reason Python Mode should touch `post-self-insert-hook' at all
> unless I intentionally turn on `electric' nonsense, which I do not do.

Thanks for the lecture ;-)


reply via email to

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