From: Sean Devlin <spd@toadstyle.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 58784-done@debbugs.gnu.org
Subject: bug#58784: 28.2; project-buffers incorrect under let-bound default-directory
Date: Fri, 4 Nov 2022 12:39:18 -0400 [thread overview]
Message-ID: <FF958E54-D607-4796-9336-6B8B5EF2AAB4@toadstyle.org> (raw)
In-Reply-To: <873fe4fa-4139-671b-0990-18833a6947a5@yandex.ru>
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!
next prev parent reply other threads:[~2022-11-04 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 0:13 bug#58784: 28.2; project-buffers incorrect under let-bound default-directory Sean Devlin
2022-10-29 0:49 ` Dmitry Gutov
2022-10-31 17:47 ` Sean Devlin
2022-11-01 23:35 ` Dmitry Gutov
2022-11-02 15:18 ` Sean Devlin
2022-11-04 1:18 ` Dmitry Gutov
2022-11-04 16:39 ` Sean Devlin [this message]
2022-11-21 18:24 ` Juri Linkov
2022-11-23 3:48 ` Dmitry Gutov
2022-11-24 2:37 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FF958E54-D607-4796-9336-6B8B5EF2AAB4@toadstyle.org \
--to=spd@toadstyle.org \
--cc=58784-done@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.