[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Has eval-and-compile changed in emacs 27?
From: |
Stefan Monnier |
Subject: |
Re: Has eval-and-compile changed in emacs 27? |
Date: |
Thu, 25 Feb 2021 22:54:43 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> That one's easy: the way the warning works is that when we process
>> a `eval-when-compile` we look at the `load-history` to see the functions
>> that have been defined during execution of its body, and then we remember
>> those as "only available now but maybe not at runtime".
>>
>> If that loaded `cl-lib`, then a subsequent (require 'cl-lib) will be
>> a no-op and won't "unremember" the corresponding functions.
>
> This sounds like nightmare :(
>
> Is this new in Emacs 27?
No, it was new back when we added the "not known to exist at run-time",
i.e. a long time ago.
> What prompted the change?
We found it useful to try and warn the users when they did
(eval-when-compile (require FOO)) but FOO was also needed at run time.
Stefan
- Re: Has eval-and-compile changed in emacs 27?, (continued)
- Re: Has eval-and-compile changed in emacs 27?, Stefan Monnier, 2021/02/25
- Re: Has eval-and-compile changed in emacs 27?, Stefan Monnier, 2021/02/25
- Re: Has eval-and-compile changed in emacs 27?, Leo Liu, 2021/02/25
- Re: Has eval-and-compile changed in emacs 27?, Stefan Monnier, 2021/02/25
- Re: Has eval-and-compile changed in emacs 27?, Leo Liu, 2021/02/25
- Re: Has eval-and-compile changed in emacs 27?,
Stefan Monnier <=
- Re: Has eval-and-compile changed in emacs 27?, Leo Liu, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Basil L. Contovounesios, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Basil L. Contovounesios, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Eli Zaretskii, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Leo Liu, 2021/02/27
- Re: Has eval-and-compile changed in emacs 27?, Stefan Monnier, 2021/02/28
- Re: Has eval-and-compile changed in emacs 27?, Stefan Monnier, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Richard Stallman, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Eli Zaretskii, 2021/02/26
- Re: Has eval-and-compile changed in emacs 27?, Basil L. Contovounesios, 2021/02/26