emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cf42b9f: ; python.el: Fix previous commit for Emacs


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] master cf42b9f: ; python.el: Fix previous commit for Emacs<24.3 compatibility
Date: Sat, 22 Aug 2015 02:26:50 +0000

branch: master
commit cf42b9fe8dade8da417f49bf0d13b85614eec076
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>

    ; python.el: Fix previous commit for Emacs<24.3 compatibility
---
 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 9c4a0f1..7d7122a 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'."
 (defun python-shell-tramp-refresh-process-environment (vec env)
   "Update VEC's process environment with ENV."
   ;; Stolen from `tramp-open-connection-setup-interactive-shell'.
-  (let ((env (append `(,(tramp-get-remote-locale vec))
+  (let ((env (append (when (fboundp #'tramp-get-remote-locale)
+                       ;; Emacs<24.4 compat.
+                       (list (tramp-get-remote-locale vec)))
                     (copy-sequence env)))
        unset vars item)
     (while env



reply via email to

[Prev in Thread] Current Thread [Next in Thread]