From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Bundling GNU ELPA packages with Emacs - what are we missing? Date: Fri, 11 Sep 2020 11:07:15 +0100 Message-ID: <86tuw4y6cs.fsf@gmail.com> References: <87y2lj4975.fsf@gmx.de> <86363pe7ki.fsf@stephe-leake.org> <86h7s5qlea.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8513"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: emacs-devel@gnu.org Cancel-Lock: sha1:cBGr6Z7xuLWEi9/D0bfSHxm9sNg= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 11 12:08:05 2020 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 1kGfyP-00027x-22 for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Sep 2020 12:08:05 +0200 Original-Received: from localhost ([::1]:43128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGfyO-0002Bi-5P for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Sep 2020 06:08:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGfxk-0001md-PV for emacs-devel@gnu.org; Fri, 11 Sep 2020 06:07:24 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:33566 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGfxj-0005Ul-Ek for emacs-devel@gnu.org; Fri, 11 Sep 2020 06:07:24 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kGfxg-0001IN-CG for emacs-devel@gnu.org; Fri, 11 Sep 2020 12:07:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/11 04:59:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:255121 Archived-At: On Thu 10 Sep 2020, Stefan Monnier wrote: >> The term "activate" is used many times wrt packages, but is not >> defined anywhere. How are users meant to understand what it means ? > > It means to add its files to the `load-path` and run the code indicated > by the autoload cookies (i.e. mostly setup some autoloads, potentially > add itself to some menu, or things like that). > > Usually, for major modes it's the only thing necessary for the > major mode to be automatically used on the appropriate files. > > Package.el does it in `package-activate-all` (also called by > `package-initialize`, tho it depends on some details, for historical > reasons). A clear explanation - thanks. The problem however is that this term is not defined in package.el or in the manual. The doc string for `package-activate' does not describe what activate means in this context, leaving readers none the wiser. Please add this description to package.el and to the manual. AndyM