Subject: bug#15378: closed ()

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 13 Dec 2013 00:58:03 +0000

Your bug report

#15378: 24.3.50; Python pdbtrack doesn't open correct file when debugging over tramp

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
15378: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15378
GNU Bug Tracking System
Contact [email-masked] with problems

From: [email-masked] (Fabián Ezequiel Gallina)
To: [email-masked]
Date: Thu, 12 Dec 2013 21:57:03 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed in revno 115500.

Thanks,
Fabián.

Subject: 24.3.50; Python pdbtrack doesn't open correct file when debugging over tramp
From: Russell Sim <[email-masked]>
To: [email-masked]
Date: Sat, 14 Sep 2013 18:24:13 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

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))