[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 17:29:37 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Somehow I stumbled upon a fix by moving (eval-when-compile (require
> 'url-parse)) to after (require 'cl-lib) to get rid of the cl-reduce,
> cl-mapcan warnings in Emacs 27. But I never understand why. Any ideas?
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.
Stefan
- 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?, 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/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/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