GNU bug report logs - #36556
26.2; python.el pdbtracking sometimes kills buffers when it shouldn't (plus fix)

Previous Next

Package: emacs;

Reported by: Ken Manheimer <ken.manheimer <at> gmail.com>

Date: Mon, 8 Jul 2019 22:30:01 UTC

Severity: normal

Found in version 26.2

Full log


Message #10 received at 36556 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Ken Manheimer <ken.manheimer <at> gmail.com>
Cc: 36556 <at> debbugs.gnu.org
Subject: Re: bug#36556: 26.2;
 python.el pdbtracking sometimes kills buffers when it shouldn't (plus
 fix)
Date: Wed, 17 Jul 2019 11:03:53 -0400
Ken Manheimer <ken.manheimer <at> gmail.com> writes:

> The problem is that this provision sometimes registers buffers that
> were present in the editing session before the pdbtracking session, so
> that pdbtracking sometimes causes pdbtracked buffers to be deleted
> when it shouldn't.
>
> I'm unsure what exact conditions lead to the problem,

I guess this can happen if your python source files are accessible
through symlinks?

> but I'm pretty sure
> that `python-pdbtrack-set-tracked-buffer()` uses the wrong buffer-finding
> function. Instead of using `get-file-buffer()`, it should be using
> `find-buffer-visiting()`. I believe that this will solve the problem.

I think this should be conditional on (or find-file-existing-other-name
find-file-visit-truename), which is what find-file-noselect checks for.




This bug report was last modified 4 years and 312 days ago.

Previous Next


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