Fix hideshow integration.
commit2d467a0ff0cd446ec0d83044a0be819cbf874cdf
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 7 Feb 2015 19:43:47 +0000 (7 16:43 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 7 Feb 2015 19:43:47 +0000 (7 16:43 -0300)
treef719433f1e65da7a6a70f4bd3f1d9231eb626f9d
parent86c50b9af1e68ca87bfc9e6d0cdb28ae2e53cc32
Fix hideshow integration.

Fixes: debbugs:19761

* lisp/progmodes/python.el
(python-hideshow-forward-sexp-function): New function based on
Carlos Pita <carlosjosepita@gmail.com> patch.
(python-mode): Make `hs-special-modes-alist` use it and initialize
the end regexp with the empty string to avoid skipping parens.

* test/automated/python-tests.el
(python-tests-visible-string): New function.
(python-parens-electric-indent-1)
(python-triple-quote-pairing): Fix indentation, move require calls.
(python-hideshow-hide-levels-1)
(python-hideshow-hide-levels-2): New tests.
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el