unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: monnier@iro.umontreal.ca
Cc: raman@google.com, eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Howto fix: package autoload is deprecated
Date: Thu, 15 Sep 2022 06:56:06 -0700	[thread overview]
Message-ID: <25379.12022.53839.709258@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <jwvbkrh2w7z.fsf-monnier+emacs@gnu.org>

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  🦮



  parent reply	other threads:[~2022-09-15 13:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  2:38 Howto fix: package autoload is deprecated T.V Raman
2022-09-14 11:30 ` Eli Zaretskii
2022-09-15  2:02   ` T.V Raman
2022-09-15  2:54     ` Stefan Monnier
2022-09-15  7:16       ` Lars Ingebrigtsen
2022-09-15 17:16         ` Stefan Monnier
2022-09-15 18:19           ` T.V Raman
2022-09-15 13:56       ` T.V Raman [this message]
2022-09-15  6:03     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25379.12022.53839.709258@retriever.mtv.corp.google.com \
    --to=raman@google.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).