From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Summary and next steps for (package-initialize) Date: Thu, 24 Aug 2017 14:40:39 -0700 (PDT) Message-ID: References: < <83tw12cocz.fsf@gnu.org> <83wp5xat6i.fsf@gnu.org> <2d035e42-006b-e76e-2b3f-75f2dfd87bb7@taydin.org> <58ac4c14-3f26-4b21-806a-aa2326ce3d2b@default> <98f114b6-191e-43f9-b505-9362b9382508@default> <<83fucg99cj.fsf@gnu.org> <435fbbb8-6135-7cd9-d852-1da5f20f3f8f@gmail.com> <634d4e4f-701d-47af-8a09-e358f441668f@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1503610901 18706 195.159.176.226 (24 Aug 2017 21:41:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 21:41:41 +0000 (UTC) To: =?utf-8?B?Q2zDqW1lbnQgUGl0LUNsYXVkZWw=?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 23:41:36 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkzsc-0004Xg-Jo for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 23:41:34 +0200 Original-Received: from localhost ([::1]:50604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkzsj-0001Th-BH for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 17:41:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkzru-0001SZ-Qq for emacs-devel@gnu.org; Thu, 24 Aug 2017 17:40:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkzrp-0000MH-TF for emacs-devel@gnu.org; Thu, 24 Aug 2017 17:40:50 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:46252) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkzrp-0000LC-JF for emacs-devel@gnu.org; Thu, 24 Aug 2017 17:40:45 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v7OLegV5007386 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Aug 2017 21:40:42 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v7OLee9a010079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Aug 2017 21:40:40 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v7OLeeNZ028323; Thu, 24 Aug 2017 21:40:40 GMT In-Reply-To: <634d4e4f-701d-47af-8a09-e358f441668f@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217789 Archived-At: > I just double checked to make sure :) package-initialize does this: >=20 > =E2=80=A6 > (unless no-activate > (dolist (elt package-alist) > (package-activate (car elt)))) > =E2=80=A6 >=20 > Then package-activate calls package-activate-1, > which calls package--load-files-for-activation, > which calls package--activate-autoloads-and-load-path and > calls `load' on all package files that were *already loaded* > which is this: >=20 > (defun package--activate-autoloads-and-load-path (pkg-desc) > "Load the autoloads file and add package dir to `load-path'. > PKG-DESC is a `package-desc' object." > =E2=80=A6) >=20 > SUmmarizing, package-initialize sets up the loadpath to include directori= es > of all installed packages, and loads their autoload files. Additionally,= it > reloads any already loaded (or `require'd) package file (it checks load- > history for that): >=20 > ;; Call `load' on all files in `package-desc-dir' already present in > ;; `load-history'. This is done so that macros in these files are up= dated > ;; to their new definitions. If another package is being installed w= hich > ;; depends on this new definition, not doing this update would cause > ;; compilation errors and break the installation. That sounds reasonable. Thx.