bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58784: 28.2; project-buffers incorrect under let-bound default-direc


From: Sean Devlin
Subject: bug#58784: 28.2; project-buffers incorrect under let-bound default-directory
Date: Fri, 4 Nov 2022 12:39:18 -0400

Hi Dmitry,

> On Nov 3, 2022, at 9:18 PM, Dmitry Gutov <dgutov@yandex.ru> wrote:
> 
> On 02.11.2022 17:18, Sean Devlin wrote:
> 
>>>> I think there’s still some fragility in the project-buffers function, 
>>>> since any callers need to be careful not to bind default-directory. It 
>>>> might be useful to call this out in the doc string or in the manual.
>>> 
>>> I suppose it could use improvement, but I'm not sure what phrasing would 
>>> stop someone from making such a mistake. After all, I knew its 
>>> implementation and made it anyway.
>>> 
>>> Perhaps the docstring should simply say that the buffers are matched on the 
>>> basis of their default-directory value. In the default implementation, that 
>>> is (custom backends could choose their own strategy). Would that help?
>> Yeah, I think a high-level description of the default strategy would be 
>> useful.
>> Thanks again for your help!
> 
> I've added some clarification in 7d47651d01.
> 
> Hopefully it makes things better, if not -- suggestions welcome.
> 
> I'm going to close this in the meantime.

Thanks, and I saw the corresponding discussion on emacs-devel. Any version of 
the proposed changes looks good to me. Feel free to close, and thanks again for 
your help!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]