GNU bug report logs - #15378
24.3.50; Python pdbtrack doesn't open correct file when debugging over tramp

Previous Next

Package: emacs;

Reported by: Russell Sim <russell.sim <at> gmail.com>

Date: Sat, 14 Sep 2013 09:08:01 UTC

Severity: normal

Found in version 24.3.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Russell Sim <russell.sim <at> gmail.com>
To: 15378 <at> debbugs.gnu.org
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
[Message part 1 (text/plain, inline)]
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

[Message part 2 (text/x-patch, inline)]
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))

This bug report was last modified 11 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.