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: kobarity <kobarity <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Liu Hui <liuhui1610 <at> gmail.com>, michael.albinus <at> gmx.de
Cc: 79036 <at> debbugs.gnu.org
Subject: bug#79036: [PATCH] Fix pdb tracking for remote filenames
Date: Sun, 03 Aug 2025 20:47:05 +0900
[Message part 1 (text/plain, inline)]
Michael Albinus wrote:
> kobarity <kobarity <at> gmail.com> writes:
> > Thus, TRAMP filenames such as "/ssh:remote1:/tmp/test.py" or
> > "/local:/tmp/test.py" is useless for PDB but helpful for PDB tracking.
> 
> JFTR: "/local:/tmp/test.py" is NOT a Tramp file name. It uses just the
> prefix "/local:" for internal purposes.

Understood.  I revised the patch to perform checking and removing
the prefix "/local:" first.

Eli Zaretskii wrote:
> 
> > From: Liu Hui <liuhui1610 <at> gmail.com>
> > Date: Thu, 24 Jul 2025 08:45:54 +0800
> > Cc: Eli Zaretskii <eliz <at> gnu.org>, michael.albinus <at> gmx.de, 79036 <at> debbugs.gnu.org
> > 
> > On Wed, Jul 23, 2025 at 11:08 PM kobarity <kobarity <at> gmail.com> wrote:
> > 
> > > > For non-file buffers, could it return buffer name instead of <string>?
> > > > e.g. #<buffer NAME> or #<NAME> where NAME may need to be quoted. Then
> > > > python-pdbtrack-set-tracked-buffer can find it by (get-buffer-create
> > > > "NAME").
> > >
> > > That might be a good idea.  Why is `get-buffer-create' is necessary
> > > rather than `get-buffer'?
> > 
> > Thanks for pointing it out. get-buffer should be used here.
> 
> So can we please have an updated patch for this?

Since it is an improvement to add a new feature and not a fix for
#79036, I think it would be better to separate the patches.

Attached is my proposed patch to fix #79036.
[0001-Fix-Python-PDB-tracking-for-remote-inferior-Python.patch (application/octet-stream, attachment)]

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.