]> git.eshelyaron.com Git - emacs.git/commit
python.el: Native readline completion.
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 27 Dec 2014 23:58:45 +0000 (20:58 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 27 Dec 2014 23:58:45 +0000 (20:58 -0300)
commit2cb7592275bce47e44916134223b994a75e4b861
tree8b9ebc87e8be0dcf0ab94a1f5cc963f393deb34b
parent968d096203fd900c8497ed455cd2682f9875448f
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.
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el