python.el: Increase native completion robustness.
commit34f58ce5d7ae8b716f8c9eee0f33d46dbcb2d9ef
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 22 Aug 2015 21:07:26 +0000 (22 18:07 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 22 Aug 2015 21:07:26 +0000 (22 18:07 -0300)
treef478c28629efdda2dd899b7ecc8d416ad564571e
parentb0fe29ed920e65510ed062c5293c4db3b9a02ab6
python.el: Increase native completion robustness.

* lisp/progmodes/python.el (python-shell-completion-native-setup):
Make completer print real candidates and just return dummy ones to
avoid input modification.
(python-shell-completion-native-get-completions): Set
comint-redirect-insert-matching-regexp to non-nil and make
comint-redirect-finished-regexp match the last dummy candidate.
Use python-shell-accept-process-output to wait for the full list
of candidates.
lisp/progmodes/python.el