[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Howto fix: package autoload is deprecated
From: |
T.V Raman |
Subject: |
Re: Howto fix: package autoload is deprecated |
Date: |
Thu, 15 Sep 2022 06:56:06 -0700 |
Agreed, though I've myself now moved past the problem for emacspeak.
The thing that made this particularly hard to debug re the obsoletion
is that the new solution is hard to discover, and even if you remove
(require 'autoload) from your own code, subr.el still pulls that
package in --- and that bit in my opinion is a giant kluge that gives
you the worst of all possible worlds.Stefan Monnier writes:
> T.V Raman [2022-09-14 19:02:42] wrote:
> > I note that the NEWS file marks that entry with a "---" to indicate no
> > manual update is needed; but we should minimally mark the info node on
> > package 'autoload obsolete, and add a short line somewhere on using or
> > at least mentioning loaddefs-generate
>
> FWIW, I think the obsoletion(?) of `autoload.el` is a bit rash:
> it breaks all existing packages which just called the (formerly)
> autoloaded entry points without first doing (require 'autoload).
> [ `elpa-admin.el` was luckily spared because it does not call autoload
> functions directly but calls `package-generate-autoloads` instead. ]
>
> I wish we could actually throw out most of `autoload.el` altogether by
> providing "thin" wrappers for the former entry points but using the new
> engine under the hood.
>
>
> Stefan
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮