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: Basil L. Contovounesios
Subject: Re: Has eval-and-compile changed in emacs 27?
Date: Fri, 26 Feb 2021 09:09:28 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Richard Stallman <rms@gnu.org>
>> Date: Fri, 26 Feb 2021 01:36:52 -0500
>> Cc: sdl.web@gmail.com, emacs-devel@gnu.org
>> 
>> It's not a good thing for a package to load more other packages
>> unnecessarily.  If it happens just once, it is not a big deal.
>> But if many libraries do it, it could lead to a cascade of bloat.
>> 
>> Does url-parse need json all the time, or only in rare special cases?
>
> I don't see json loaded by any file in the lisp/url directory, so it
> must be some indirect load.  The easiest way of finding out who loads
> it would be to run Emacs under GDB with a breakpoint on Fload.

url-parse.el has only three requires:

  (require 'url-vars)
  (require 'auth-source)
  (eval-when-compile (require 'cl-lib))

auth-source.el has a known JSON backend, and indeed it loads:

  (require 'json)
  (require 'password-cache)

  (require 'cl-lib)
  (require 'eieio)

-- 
Basil



reply via email to

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