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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15378: closed (24.3.50; Python pdbtrack doesn't open correct
 file when debugging over tramp)
Date: Fri, 13 Dec 2013 00:58:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 12 Dec 2013 21:57:03 -0300
with message-id <87sitx1sbk.fsf <at> gnu.org>
and subject line 
has caused the debbugs.gnu.org bug report #15378,
regarding 24.3.50; Python pdbtrack doesn't open correct file when debugging over tramp
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
15378: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15378
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Russell Sim <russell.sim <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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 3 (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 4 (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))
[Message part 5 (message/rfc822, inline)]
From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 15378-done <at> debbugs.gnu.org
Date: Thu, 12 Dec 2013 21:57:03 -0300
Fixed in revno 115500.


Thanks,
Fabián.


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.