]> git.eshelyaron.com Git - emacs.git/commit
python.el: Respect process environment for remote shells
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Jul 2015 10:57:14 +0000 (07:57 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Jul 2015 10:57:14 +0000 (07:57 -0300)
commit0fdc3f2ee839646cf41691f04a33252f05b7060e
tree279651545ad92c693ffa4f007049592f19f9e9a0
parent8c81ac97fdd0d1dff7256dace45bdd48324a0963
python.el: Respect process environment for remote shells

* lisp/progmodes/python.el
(python-shell-calculate-process-environment): Calculate
process-environment or tramp-remote-process-environment depending
whether current file is remote.
(python-shell-calculate-exec-path): Calculate exec-path or
tramp-remote-path depending whether current file is remote.
(python-shell-with-environment): New macro.
(python-shell-prompt-detect, python-shell-calculate-command)
(python-shell-make-comint, python-check): Use it.
lisp/progmodes/python.el