GNU bug report logs - #79036
[PATCH] Fix pdb tracking for remote filenames

Previous Next

Package: emacs;

Reported by: Liu Hui <liuhui1610 <at> gmail.com>

Date: Thu, 17 Jul 2025 04:59:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#79036: closed ([PATCH] Fix pdb tracking for remote filenames)
Date: Thu, 07 Aug 2025 14:47:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 07 Aug 2025 17:46:09 +0300
with message-id <86qzxnp4um.fsf <at> gnu.org>
and subject line Re: bug#79036: [PATCH] Fix pdb tracking for remote filenames
has caused the debbugs.gnu.org bug report #79036,
regarding [PATCH] Fix pdb tracking for remote filenames
to be marked as done.

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


-- 
79036: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79036
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Liu Hui <liuhui1610 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix pdb tracking for remote filenames
Date: Thu, 17 Jul 2025 12:57:45 +0800
[Message part 3 (text/plain, inline)]
Hello,

The recipe:

1. emacs -Q
2. Create a remote python file and start the remote python shell, e.g.
   M-x find-file /ssh:server:/tmp/test.py
   M-x run-python
3. Insert the following code in test.py and press C-c C-c to send it
   to the python shell:

   def f():
       breakpoint()
       return 1

4. Execute f() in the python shell to trigger the pdb

Result: Emacs tries to open /ssh:server:/ssh:server:/tmp/test.py
instead of /ssh:server:/tmp/test.py.

The reason is the filename set by python-shell-send-string may be
remote. The attached patch fixes the issue.

--
Liu Hui
[0001-Fix-pdb-tracking-for-remote-filenames.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: kobarity <kobarity <at> gmail.com>
Cc: liuhui1610 <at> gmail.com, 79036-done <at> debbugs.gnu.org, michael.albinus <at> gmx.de
Subject: Re: bug#79036: [PATCH] Fix pdb tracking for remote filenames
Date: Thu, 07 Aug 2025 17:46:09 +0300
> Date: Thu, 07 Aug 2025 22:52:13 +0900
> From: kobarity <kobarity <at> gmail.com>
> Cc: 79036 <at> debbugs.gnu.org
> 
> Eli Zaretskii wrote:
> > 
> > > Date: Wed, 06 Aug 2025 23:14:47 +0900
> > > From: kobarity <kobarity <at> gmail.com>
> > > Cc: 79036 <at> debbugs.gnu.org
> > > 
> > > Attached is the revised patch to fix #79036.
> > 
> > Thanks, now installed on master.
> > 
> > Should we close this bug now, or is there anything else left to do
> > here?
> 
> Thanks.  I think we can close this bug.  It would be best for Liu to
> send a patch as a separate bug ID for the improvement using the buffer
> name.

Thanks, closing.


This bug report was last modified 2 days ago.

Previous Next


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