GNU bug report logs -
#74040
`require-with-check` signals error for `project`
Previous Next
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
View this message in rfc822 format
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 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.