From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: PACKAGE-FEATURES, and hot update of Emacs packages Date: Sun, 28 Nov 2021 02:30:02 +1300 Message-ID: <33daec75f840823e825a814beb92e739@webmail.orcon.net.nz> References: <5C502136-57BD-40D4-A1E8-A4313AD7CDFC@stanford.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38932"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: emacs-devel@gnu.org To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 14:31:47 2021 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 1mqxnu-0009zS-Vk for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 14:31:46 +0100 Original-Received: from localhost ([::1]:52296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqxnu-0005Iv-0K for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 08:31:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqxmJ-0004DY-4v for emacs-devel@gnu.org; Sat, 27 Nov 2021 08:30:07 -0500 Original-Received: from smtp-2.orcon.net.nz ([60.234.4.43]:37059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqxmH-0007Dj-C9 for emacs-devel@gnu.org; Sat, 27 Nov 2021 08:30:06 -0500 Original-Received: from [10.253.37.70] (port=14991 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1mqxmE-0002Wu-Fq; Sun, 28 Nov 2021 02:30:02 +1300 Original-Received: from ip-115-69-175-77.kinect.net.nz ([115.69.175.77]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sun, 28 Nov 2021 02:30:02 +1300 In-Reply-To: X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.43; envelope-from=psainty@orcon.net.nz; helo=smtp-2.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:280337 Archived-At: On 2021-11-28 01:16, Phil Sainty wrote: > I suppose (package-desc-version (package-load-descriptor DIR)) can be > used for ELPA packages installed in the standard way, so maybe there's > scope for using that; but I suspect that'd be too brittle an approach, > as there are many non-standard ways of loading things. I phrased that final bit very confusingly. I just meant that a file which is intended to be installed as an ELPA package might actually be loaded directly from some non-ELPA source, or even evaluated via `eval-buffer', and so an approach which depended on a *-pkg.el being present in the same directory could fail in those situations, causing inconsistent behaviour. -Phil