emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has eval-and-compile changed in emacs 27?


From: Leo Liu
Subject: Re: Has eval-and-compile changed in emacs 27?
Date: Fri, 26 Feb 2021 10:40:12 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (macOS 10.14.6)

On 2021-02-25 17:29 -0500, Stefan Monnier wrote:
> 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? What prompted the change?

I think when managing dependencies I want to be able to look locally at
what I put in a elisp file and be done with it.

The new behaviour means I also need to chase dependencies and their
dependencies...

Another point is subsequent (require 'cl-lib) provides stronger
guarantee but is ignored which produces spurious warnings.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]