[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bootstrap/autoload policy (was Re: regular expressions that match no
From: |
Stefan Monnier |
Subject: |
Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing) |
Date: |
Wed, 22 May 2019 15:08:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> Ah, I think I know what's going on. See this part of cl-lib.el:
>>
>> (unless (load "cl-loaddefs" 'noerror 'quiet)
>> ;; When bootstrapping, cl-loaddefs hasn't been built yet!
>> (require 'cl-macs)
>> (require 'cl-seq))
>>
>> Adding `cl-extra` here would likely fix your problem
> No, now the bootstrap just fails earlier:
Welcome to the world of the bootstrap.
> I think the (require 'cl-extra) better stay in rx.el until this mess
> has been sorted out.
Or refrain from using rx's `or` from bytecomp.el, or refrain from calling
byte-compile from cl-generic.el during the bootstrap, or ...
>> (of course, using
>> (memq nil (mapcar ...)) is a perfectly fine alternative as well).
> That's what I always have been using, but given that cl-every and cl-some
> are easier to read, understand, and write, and generally faster, I've sort
> of changed tack.
Either way is fine by me (w.r.t speed, cl-every is usually slower per
iteration, so whether it's overall faster or slower depends on how far
down the list it has to get before it finds a nil).
> Maybe we should add `every' and `some' as builtins?
I prefer not to have an opinion on this ;-)
Stefan
- Re: More re odditie [Was: regular expressions that match nothing], (continued)
- Re: More re odditie [Was: regular expressions that match nothing], Michael Heerdegen, 2019/05/16
- Re: More re odditie [Was: regular expressions that match nothing], Mattias Engdegård, 2019/05/16
- Global and local definitions of non-functions/variable (was: More re odditie [Was: regular expressions that match nothing]), Stefan Monnier, 2019/05/16
- Bootstrap/autoload policy (was Re: regular expressions that match nothing), Mattias Engdegård, 2019/05/20
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Stefan Monnier, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Mattias Engdegård, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Stefan Monnier, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Mattias Engdegård, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Stefan Monnier, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Mattias Engdegård, 2019/05/22
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing),
Stefan Monnier <=
- Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing), Basil L. Contovounesios, 2019/05/26
- Re: regular expressions that match nothing, Eric Abrahamsen, 2019/05/16
- 回复: regular expressions that match nothing, net june, 2019/05/19
- Re: regular expressions that match nothing, HaiJun Zhang, 2019/05/19
- Re: regular expressions that match nothing, Mattias Engdegård, 2019/05/19
- Re: regular expressions that match nothing, philippe schnoebelen, 2019/05/20
- Re: regular expressions that match nothing, Richard Stallman, 2019/05/20
- RE: 回复: regular expressions that match nothing, Drew Adams, 2019/05/19