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 05:55:51 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (macOS 10.14.6)

On 2021-02-25 11:28 -0500, Stefan Monnier wrote:
> Oh, I see: it's the (eval-when-compile (require 'url-parse)) because
> apparently `url-parse` now ends up loading `json` somehow.

I was trying to fix some elisp warnings in
https://github.com/erlang/otp/pull/4542 but there was failed tests:

../../../otp/lib/erlang/lib/tools-3.5/emacs/erldoc.el:534:1:Error: the 
following functions might not be defined at runtime: json-encode, cl-reduce, 
cl-mapcan

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?



reply via email to

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