diff options
| author | Fabián Ezequiel Gallina | 2015-08-21 23:26:44 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2015-08-21 23:26:44 -0300 |
| commit | cf42b9fe8dade8da417f49bf0d13b85614eec076 (patch) | |
| tree | 04530877369bd4fd4acbd7f8d92a9cc08923c1d6 /lisp/progmodes/python.el | |
| parent | e2a5e3f87aba493623734dcf9b872e10c6077496 (diff) | |
| download | emacs-cf42b9fe8dade8da417f49bf0d13b85614eec076.tar.gz emacs-cf42b9fe8dade8da417f49bf0d13b85614eec076.zip | |
; python.el: Fix previous commit for Emacs<24.3 compatibility
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9c4a0f1bbfb..7d7122acccb 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2101,7 +2101,9 @@ appends `python-shell-remote-exec-path' instead of `exec-path'." | |||
| 2101 | (defun python-shell-tramp-refresh-process-environment (vec env) | 2101 | (defun python-shell-tramp-refresh-process-environment (vec env) |
| 2102 | "Update VEC's process environment with ENV." | 2102 | "Update VEC's process environment with ENV." |
| 2103 | ;; Stolen from `tramp-open-connection-setup-interactive-shell'. | 2103 | ;; Stolen from `tramp-open-connection-setup-interactive-shell'. |
| 2104 | (let ((env (append `(,(tramp-get-remote-locale vec)) | 2104 | (let ((env (append (when (fboundp #'tramp-get-remote-locale) |
| 2105 | ;; Emacs<24.4 compat. | ||
| 2106 | (list (tramp-get-remote-locale vec))) | ||
| 2105 | (copy-sequence env))) | 2107 | (copy-sequence env))) |
| 2106 | unset vars item) | 2108 | unset vars item) |
| 2107 | (while env | 2109 | (while env |