From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Howto fix: package autoload is deprecated Date: Thu, 15 Sep 2022 06:56:06 -0700 Message-ID: <25379.12022.53839.709258@retriever.mtv.corp.google.com> References: <25377.16025.896544.821967@google.com> <83r10e2nx7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6127"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, eliz@gnu.org, emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 15 15:57:34 2022 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 1oYpMz-0001Rt-Cm for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Sep 2022 15:57:33 +0200 Original-Received: from localhost ([::1]:55362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYpMx-0001u4-Om for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Sep 2022 09:57:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYpLf-00019R-VT for emacs-devel@gnu.org; Thu, 15 Sep 2022 09:56:11 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:37637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYpLd-0007us-Hl for emacs-devel@gnu.org; Thu, 15 Sep 2022 09:56:11 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id n23-20020a17090a091700b00202a51cc78bso16191977pjn.2 for ; Thu, 15 Sep 2022 06:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date; bh=OiHuuGQIhIgO2i5KekNyXcTeiCQXJVCJzWKbTuHy/AM=; b=VAhMMjNAWGII4PziegDPlauWFrzxn/+m0pjrhhFHbSEs6N3nhPBUaEtpjYhT/lmzD7 a89gLsM7I6nE9heEG1OMmlvoj35vAKfNzDpoGU2IWTRY3+brgp8Hbf3VDhsHo6hwpaG+ BnZO3g1Z2dj1kRQfuvvIDwwkRs0j3XAIhkpXYhLVDHpNU9SXLJbspia1h9+f2JaVsIsx Oai02HaT3sXgv9r/v+xatynWsIa6YdRgPaNLY+z3+CPbCjBzmVgLWpDkvIvYavoo9MdW V/FXmwzzkBmIGjBR0PWkJ1bjp7MrKNf63DPC7CEv2/OMiczcD3JpVamPftx7cdVO83im DDKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date; bh=OiHuuGQIhIgO2i5KekNyXcTeiCQXJVCJzWKbTuHy/AM=; b=XotkThuOsnZCQ9GHRT9YvkXValeNiw4Qrjm5MKXAQxbl6+aYeNS/jcnrAlrGG3a5Ns lT9XYsc9lXURbFAvGVF44AvoYqGrGklQ921iV9ll/z/wkuC6+EION1DsDSXYwxB/1eq9 dl5pkU4exV7X11/aD90Gmb8SNwrFxx57BGlYhiJIpwS2LWl/VxiPKmm7f2pRE0tZEJoX zrAj4Q8TfTbp/DTX8dOD2FkKfkQQV69UuH+2VL8oDkhbPjy4CtlGZoTzT4Zjnx4mRMq3 1o4sZ5d5McRARpk62In1svZ281rPs8yUecLRHApvwUBlLlrvFdK2uCN7dmTLwkyGtp34 72fQ== X-Gm-Message-State: ACrzQf3CwsiXpCydRRm9gsr9mabAr0cTVS0jXCgS2sRX5fDhiAGTW00g PMWmK1R4T8JF5SKdXskS2qu0b6LyiSr7Ew== X-Google-Smtp-Source: AMsMyM7vk4DEUnk1xwo7nK/VGQSElpM6/v527kTUdeR0bnUvsnTqShNbtZ3CaQzFNO4DeIYT6ll7Iw== X-Received: by 2002:a17:902:ce8b:b0:178:4b73:8233 with SMTP id f11-20020a170902ce8b00b001784b738233mr4440769plg.93.1663250167454; Thu, 15 Sep 2022 06:56:07 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1612:ab7f:410e:a901:38a]) by smtp.gmail.com with ESMTPSA id gv6-20020a17090b11c600b002002f9eb8c4sm1691195pjb.12.2022.09.15.06.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 06:56:06 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 29.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=raman@google.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -193 X-Spam_score: -19.4 X-Spam_bar: ------------------- X-Spam_report: (-19.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-1.816, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:295424 Archived-At: 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 indicat= e no > > manual update is needed; but we should minimally mark the info nod= e on > > package 'autoload obsolete, and add a short line somewhere on usin= g or > > at least mentioning loaddefs-generate=20 >=20 > FWIW, I think the obsoletion(=3F) 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 autolo= ad > functions directly but calls `package-generate-autoloads` instead.= ] >=20 > 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. >=20 >=20 > Stefan --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮