emacs-diffs
[Top][All Lists]
Advanced

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

master b4f1ceaf24: python.el: Silence left over warning in last commit


From: Stefan Monnier
Subject: master b4f1ceaf24: python.el: Silence left over warning in last commit
Date: Fri, 4 Feb 2022 13:39:28 -0500 (EST)

branch: master
commit b4f1ceaf241239b8fc7ad1e91af62f4e425bda8a
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    python.el: Silence left over warning in last commit
    
    * lisp/progmodes/python.el
    (python-shell-calculate-process-environment): Declare
    tramp-remote-process-environment before using it.
---
 lisp/progmodes/python.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ba8e3e811d..d83290fe45 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2208,6 +2208,7 @@ virtualenv."
 
 (defun python-shell-calculate-process-environment ()
   (declare (obsolete python-shell--calculate-process-environment "29.1"))
+  (defvar tramp-remote-process-environment)
   (let* ((remote-p (file-remote-p default-directory)))
     (append (python-shell--calculate-process-environment)
             (if remote-p



reply via email to

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