From: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 74289-done@debbugs.gnu.org
Subject: bug#74289: 30.0.92; `require-with-check' fails on non-existing files
Date: Mon, 11 Nov 2024 05:52:16 +0100 [thread overview]
Message-ID: <87r07icqyn.fsf@daniel-mendler.de> (raw)
In-Reply-To: <jwv34jywyfa.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 10 Nov 2024 16:51:14 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>>> `require-with-check' fails since
>>>> 0aae02a3741c397d6952e3128d434827aca0f912 on non-existing files.
>>>>
>>>> See the CI run of the Compat test suite:
>>>>
>>>> https://github.com/emacs-compat/compat/actions/runs/11763132765/job/32766767667
>>>>
>>>> This call fails:
>>>>
>>>> (require-with-check 'compat-does-not-exist nil 'noerror)
>>>
>>> Oops, can you confirm that the patch below works for you?
>>
>> It does look correct :) Thanks.
>
> Than you, Daniel, pushed to `emacs-30`.
> Closing,
Hi Stefan,
I think there is one more bug a little bit later. prefix can be nil
here:
(while (and lh (let ((file (car-safe (car lh))))
(not (and file (string-prefix-p prefix file)))))
...)
In order to check, simply eval this code:
(require-with-check 'compat-does-not-exist nil 'noerror)
Daniel
next prev parent reply other threads:[~2024-11-11 4:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 8:43 bug#74289: 30.0.92; `require-with-check' fails on non-existing files Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-10 17:38 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-10 17:46 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-10 21:51 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-11 4:52 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-11-13 8:52 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-13 16:40 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-13 16:53 ` Daniel Mendler 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=87r07icqyn.fsf@daniel-mendler.de \
--to=bug-gnu-emacs@gnu.org \
--cc=74289-done@debbugs.gnu.org \
--cc=mail@daniel-mendler.de \
--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.