]> git.eshelyaron.com Git - emacs.git/commit
python-mode: Fix detection for opening blocks.
authorHong Xu <hong@topbug.net>
Tue, 13 Dec 2016 01:55:25 +0000 (17:55 -0800)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 27 Jan 2017 01:14:19 +0000 (20:14 -0500)
commit7cb7a582f44db94292709d35f4f5474f891f03b0
treee0ab66d0b9409565128b65e01061dbd061f48502
parent3485c1693efb709cfc15023d9b38978278731a32
python-mode: Fix detection for opening blocks.

* python.el (python-info-dedenter-opening-block-positions): There
can't be any back-indented lines between an opening block and the
current line.

* python-tests.el (python-indent-electric-colon-4): Add an indent
test case where there is one-more indented previous opening block.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el