]> code.delx.au - gnu-emacs/commit
python.el: Fix electric colon behavior
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 22 Dec 2014 05:24:42 +0000 (02:24 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 22 Dec 2014 05:24:42 +0000 (02:24 -0300)
commit749813e9d4a844384e0450f6f7f88484b15e348a
tree11dacc975324be1c08bf16c4430183fbb624f53b
parent936d5e5bb63358da281188d9c8e9e21341df9444
python.el: Fix electric colon behavior

* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Make colon to re-indent only for dedenters, handling
multiline-statements gracefully.

* test/automated/python-tests.el (python-indent-electric-colon-2)
(python-indent-electric-colon-3): New tests.
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el