python.el: Fix completion for pdb interactions
commita92066b80e4245f5093fa1ed481f0e3eb377f504
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sun, 23 Aug 2015 17:54:56 +0000 (23 14:54 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sun, 23 Aug 2015 17:55:06 +0000 (23 14:55 -0300)
treea03a4c055ce3ea33bc9b4518511d357c3d5c8e7a
parente7be9861962a5a399047e86a254c2534d5d4d146
python.el: Fix completion for pdb interactions

* lisp/progmodes/python.el (python-shell-completion-setup-code):
Simplify.  Toggle print_mode for native wrapped completer.
(python-shell-completion-native-setup): Ensure process buffer.
Add print_mode attribute to completer wrapper to toggle returning
or printing candidates.
(python-shell-completion-native-get-completions): Cleanup.
(python-shell-completion-get-completions): Cleanup.
(python-shell-completion-at-point): Perform prompt checks.  Force
fallback completion in pdb interactions.
lisp/progmodes/python.el