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: Eli Zaretskii
Subject: Re: Has eval-and-compile changed in emacs 27?
Date: Thu, 25 Feb 2021 16:59:58 +0200

> From: Leo Liu <sdl.web@gmail.com>
> Date: Thu, 25 Feb 2021 21:06:15 +0800
> 
>     erldoc.el:535:1:Warning: the function ‘json-encode’ might not be
>     defined at runtime.
> 
> I have (eval-and-compile (require 'json)) right before using json-encode
> in a function body. Has anything changed in emacs 27 regarding
> eval-and-compile? I checked NEWS but couldn't find anything.

eval-and-compile doesn't make sure the function is known at run time,
it only makes sure it is known at compile time.

(And yes, I think we modified the diagnostics there lately.)



reply via email to

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