* lisp/progmodes/python.el:
commit0137922173eb3655aa0d9787991ecb62602e47c9
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 25 Dec 2013 18:07:31 +0000 (25 15:07 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 25 Dec 2013 18:07:31 +0000 (25 15:07 -0300)
treedc87f15582fdd36b745acb750cb5e96004d8c5e3
parent99e4926fcbee9f7e75ed19b194fa7a2aa59c98c1
* lisp/progmodes/python.el:
(python-nav--lisp-forward-sexp): New function.
(python-nav--lisp-forward-sexp-safe): Use it.  Rename from
python-nav-lisp-forward-sexp-safe.
(python-nav--forward-sexp): New argument SAFE allows switching
forward sexp movement behavior for parens.
(python-nav-forward-sexp): Throw errors on unterminated parens.
(python-nav-backward-sexp, python-nav-forward-sexp-safe)
(python-nav-backward-sexp-safe): New functions.
(python-shell-buffer-substring): Use
`python-nav-forward-sexp-safe'.

* test/automated/python-tests.el
(python-nav-lisp-forward-sexp-safe-1): Remove test.
(python-nav-forward-sexp-safe-1): New test.

Fixes: debbugs:16191
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el