GNU bug report logs - #74040
`require-with-check` signals error for `project`

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Sun, 27 Oct 2024 03:16:02 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 74040 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 74040 <at> debbugs.gnu.org
Subject: Re: bug#74040: `require-with-check` signals error for `project`
Date: Sun, 27 Oct 2024 14:24:01 -0700
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> 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?




This bug report was last modified 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.