From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Has eval-and-compile changed in emacs 27? Date: Thu, 25 Feb 2021 16:59:58 +0200 Message-ID: <83sg5kry4x.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 25 16:02:55 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFIAI-00022M-GG for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Feb 2021 16:02:54 +0100 Original-Received: from localhost ([::1]:57912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFIAH-0000yg-FO for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Feb 2021 10:02:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFI7h-0007g0-LL for emacs-devel@gnu.org; Thu, 25 Feb 2021 10:00:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57030) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFI7h-0000fp-ET; Thu, 25 Feb 2021 10:00:13 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2358 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lFI7g-0001h5-Bk; Thu, 25 Feb 2021 10:00:12 -0500 In-Reply-To: (message from Leo Liu on Thu, 25 Feb 2021 21:06:15 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265618 Archived-At: > From: Leo Liu > 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.)