python.el: Defer shell setup code until first interactive prompt
commit3caef97113438d69b6106ffacf5dac72d6a5f19e
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sun, 23 Aug 2015 19:53:02 +0000 (23 16:53 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sun, 23 Aug 2015 19:53:02 +0000 (23 16:53 -0300)
tree29ad444e0f056ccade6fa5cf49e32b6eb630ed27
parentc13a4df51ca2b82c03ef13bca1151f727cfc64f6
python.el: Defer shell setup code until first interactive prompt

* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter): New
function.
(inferior-python-mode): Use it.
(python-shell-first-prompt-hook): New hook.
(python-shell-send-setup-code)
(python-shell-completion-native-turn-on-maybe-with-msg): Attach to
this hook instead of inferior-python-hook.
lisp/progmodes/python.el