GNU bug report logs -
#58784
28.2; project-buffers incorrect under let-bound default-directory
Previous Next
Reported by: Sean Devlin <spd <at> toadstyle.org>
Date: Wed, 26 Oct 2022 00:14:01 UTC
Severity: normal
Found in version 28.2
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 58784-done <at> debbugs.gnu.org (full text, mbox):
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.
This bug report was last modified 2 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.