Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project

From: Dmitry Gutov <[email-masked]>
Date: Sat, 22 Apr 2023 02:31:48 +0300

Version: 30.1

On 21/04/2023 19:25, Spencer Baugh wrote:
> That looks good and it fixes all the bug cases I mentioned.
> 
> But what about the case where the old buffer was already in the project?
> 
> 1. In a buffer visiting project-a/some/dir/file.el
> 2. C-x p b nonexisting-buffer RET
> 
> Existing behavior, and possibly desirable behavior:
> 3. default-directory in new buffer: project-a/some/dir/
> 
> With your change:
> 3. default-directory in new buffer: project-a/

Yeah, okay, I added a special check for that too.

Pushed to master, commit 4f3dae2b0d5.

Closing, but let us know if something is still amiss.