aboutsummaryrefslogtreecommitdiffstats
path: root/test/automated/python-tests.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2014-12-27 20:58:45 -0300
committerFabián Ezequiel Gallina2014-12-27 20:58:45 -0300
commit2cb7592275bce47e44916134223b994a75e4b861 (patch)
tree8b9ebc87e8be0dcf0ab94a1f5cc963f393deb34b /test/automated/python-tests.el
parent968d096203fd900c8497ed455cd2682f9875448f (diff)
downloademacs-2cb7592275bce47e44916134223b994a75e4b861.tar.gz
emacs-2cb7592275bce47e44916134223b994a75e4b861.zip
python.el: Native readline completion.
This commit adds native readline completion that fallbacks to the old mechanism when it cannot be used for the current interpreter. * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters) (python-shell-completion-native-enable) (python-shell-completion-native-output-timeout): New defcustoms. (python-shell-completion-native-interpreter-disabled-p) (python-shell-completion-native-try) (python-shell-completion-native-setup) (python-shell-completion-native-turn-off) (python-shell-completion-native-turn-on) (python-shell-completion-native-turn-on-maybe) (python-shell-completion-native-turn-on-maybe-with-msg) (python-shell-completion-native-toggle): New functions. (python-shell-completion-native-get-completions): New function. (python-shell-completion-at-point): Use it. * test/automated/python-tests.el (python-shell-completion-native-interpreter-disabled-p-1): New test.
Diffstat (limited to 'test/automated/python-tests.el')
-rw-r--r--test/automated/python-tests.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el
index 90fa79ee966..ca43c45ac5e 100644
--- a/test/automated/python-tests.el
+++ b/test/automated/python-tests.el
@@ -2584,6 +2584,13 @@ class Foo(models.Model):
2584 2584
2585;;; Shell completion 2585;;; Shell completion
2586 2586
2587(ert-deftest python-shell-completion-native-interpreter-disabled-p-1 ()
2588 (let* ((python-shell-completion-native-disabled-interpreters (list "pypy"))
2589 (python-shell-interpreter "/some/path/to/bin/pypy"))
2590 (should (python-shell-completion-native-interpreter-disabled-p))))
2591
2592
2593
2587 2594
2588;;; PDB Track integration 2595;;; PDB Track integration
2589 2596