From: Stefan Kangas <stefankangas@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, 74040@debbugs.gnu.org
Subject: bug#74040: `require-with-check` signals error for `project`
Date: Sun, 27 Oct 2024 14:24:01 -0700 [thread overview]
Message-ID: <CADwFkm=XVicNb4R_uYdxBvfJ0yPSy9t40Pn3BN+ifxRsS1hkFw@mail.gmail.com> (raw)
In-Reply-To: <jwvy129o5xv.fsf-monnier+emacs@gnu.org>
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:
>> One approach is to expose the `prefer` option of `openp` to
>> `locate-file` so we can use it in `require-with-check`, as in the
>> patch below.
>
> Another is to replace the `assoc` check with one that is more lenient,
> ignoring difference in file extensions. E.g. the patch below.
> This makes the change more localized, at the cost of making
> `require-with-check` slower and less strict.
Either patch is fine by me, but having the change more localized is
certainly nice.
Do you have any other use case in mind for the new PREFER-NEWER argument
of `locate-file` than `require-with-check`? If not, perhaps we should
avoid making it more complex?
next prev parent reply other threads:[~2024-10-27 21:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-27 3:15 bug#74040: `require-with-check` signals error for `project` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-27 16:25 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-27 16:43 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-27 21:24 ` Stefan Kangas [this message]
2024-10-29 2:42 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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='CADwFkm=XVicNb4R_uYdxBvfJ0yPSy9t40Pn3BN+ifxRsS1hkFw@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=74040@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.