bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#15378: 24.3.50; Python pdbtrack doesn't open correct file when debug


From: Russell Sim
Subject: bug#15378: 24.3.50; Python pdbtrack doesn't open correct file when debugging over tramp
Date: Sat, 14 Sep 2013 18:24:13 +1000

Hi,

Currently when using pdbtrack over tramp Emacs opens local files instead
of the remote files.

I have attached a patch that fixes this.

All the best,
Russell

diff --git a/python.el b/python.el
index be151bf..3ed69a3 100644
--- a/python.el
+++ b/python.el
@@ -2476,7 +2476,8 @@ Argument OUTPUT is a string with the output from the 
comint process."
                                    (match-string-no-properties 2)))
                 (match-string-no-properties 1)))))
       (if (and file-name line-number)
-          (let* ((tracked-buffer
+          (let* ((file-name (concat (file-remote-p default-directory) 
file-name))
+                 (tracked-buffer
                   (python-pdbtrack-set-tracked-buffer file-name))
                  (shell-buffer (current-buffer))
                  (tracked-buffer-window (get-buffer-window tracked-buffer))

reply via email to

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