From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Radon Rosborough Newsgroups: gmane.emacs.devel Subject: Re: Loading a package applies automatically to future sessions? Date: Sun, 28 Jan 2018 10:20:49 -0800 Message-ID: References: <76b1fb81-54c0-c213-a542-dc7b9838c473@gmail.com> <83zi50jsmn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517163591 17145 195.159.176.226 (28 Jan 2018 18:19:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2018 18:19:51 +0000 (UTC) Cc: rms@gnu.org, emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 28 19:19:47 2018 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 1efrYJ-0003Zc-5W for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2018 19:19:39 +0100 Original-Received: from localhost ([::1]:53508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efraI-00023B-1R for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2018 13:21:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efraB-00022t-FQ for emacs-devel@gnu.org; Sun, 28 Jan 2018 13:21:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efraA-0001xY-Dv for emacs-devel@gnu.org; Sun, 28 Jan 2018 13:21:35 -0500 Original-Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:33988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efra7-0001ty-EB; Sun, 28 Jan 2018 13:21:31 -0500 Original-Received: by mail-lf0-x22a.google.com with SMTP id k19so6815411lfj.1; Sun, 28 Jan 2018 10:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PKg4AChVFLl981EJBzxB8jJ005W9Zt8/I0IAMPaSiu8=; b=KP03yL7WKX+2s/Xrg2BYFzc6qxjaj/SnNOpV1yhkg0lUESZ+g3cUid+rZJJzc8bRPH fV1WI8uPAjwYDiXnE9XtHamt4nMp1GA5RRNGFDylBsWIm9dejRYkCLqS9TDRPKQMKozY JTsAky7AHVLykGmTDROzPxhMnsy8yKdYQWObNdO1tiEC6LemiaT7XHACPGi8fcA30Cpl 5IQ1WPJoWS4+ZSUBr9v499UaouaCgJ++dM6RavFDFtTa+iNuOT81i5e82jar5DbfJ3JU ctMzVSgBug6mAATsMD/63MNgmb5idmHFCBK5gVH1l2Cd6PQze2WwjDFT9nprKCaobyxn JzPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PKg4AChVFLl981EJBzxB8jJ005W9Zt8/I0IAMPaSiu8=; b=mUrGWiuwW5RjqbfXRsCcht4VPMUbpwRiZO84sfnvS5I82Nmkvr80YNuVOqIGgWh+T3 jbnS4U588PJ0FjHrzhnkjZjbj5qM0edxz6VMrKcxmGU8wJX5QohjE3QrZOCdI9CGiDOz nGKibNEADGYGpRovvbuKJ+WrIWzGHnmsC0MBA5fEhnj8SMBbeAnFTdKjEYFbWaKjhK9T j4jNXPC2A/s5JugCObZH+GJk6oLAAPa2cy6Vr4O2b7ZCEhgVw8MNuWam7ldwSdsof/Os 57VTagkNZCFIDfI4mWg8gXkYUzIA8z4iNDY/U2/DdQXU0pVIq03ZqjY1nznxxwCTZUBI RQLg== X-Gm-Message-State: AKwxytd6tzcvb02ANL4QDtS0/5OuC/CaTst3q/zGaAHHzkBqa/FbMavS m50okztXTsCKGcvzBotNwEpo3Rcc5dju3AqG44GhaKPc X-Google-Smtp-Source: AH8x227ocwzrYWHm98iTPXrrVxd5TOAOoc3l+YolvcKKCFUXynhUibvWaf3+bvc1FnCkqNU1i0oYHczGHNVSEom2rVo= X-Received: by 10.25.156.20 with SMTP id f20mr7827578lfe.12.1517163689771; Sun, 28 Jan 2018 10:21:29 -0800 (PST) Original-Received: by 10.25.16.101 with HTTP; Sun, 28 Jan 2018 10:20:49 -0800 (PST) In-Reply-To: <83zi50jsmn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::22a 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:222276 Archived-At: > Please point out the places in the manual where we use "load" in the > former sense. I think those places need to be fixed, because that's > not what "load" means in the Emacs context. The crux of the problem is here in emacs/package.texi: "Once a package is downloaded and installed, it is @dfn{loaded} into the current Emacs session. Loading a package is not quite the same as loading a Lisp library (@pxref{Lisp Libraries}); loading a package adds its directory to @code{load-path} and loads its autoloads." Frankly the name of `package-load-list' is misleading if we're going to change this terminology. It implies you are setting which packages are going to be loaded. We also have usage of this terminology in emacs/package.texi: "After a package is installed, it is automatically loaded by Emacs in all subsequent sessions." "As an exception, Emacs does not load packages at startup if invoked with the @samp{-q} or @samp{--no-init-file} options (@xref{Initial Options})." "To disable automatic package loading, change the variable @code{package-enable-at-startup} to @code{nil}. You must do this in the early init file, as the variable is read before loading the regular init file." "For finer control over package loading, you can use the variable @code{package-load-list}." "A list element of the form @code{(@var{name} @var{version})} tells Emacs to load version @var{version} of the package named @var{name}. Here, @var{version} should be a version string (corresponding to a specific version of the package), or @code{t} (which means to load any installed version), or @code{nil} (which means no version; this disables the package, preventing it from being loaded). A list element can also be the symbol @code{all}, which means to load the latest installed version of any package not named by the other list elements." "For example, if you set @code{package-load-list} to @code{'((muse "3.20") all)}, then Emacs only loads version 3.20 of the @samp{muse} package, plus any installed version of packages other than @samp{muse}." In lispref/package.texi: "Whenever Emacs starts up, it automatically calls the function @code{package-initialize} to load installed packages." "Automatic package loading is disabled if the user option @code{package-enable-at-startup} is set to @code{nil} in the early init file." "This function initializes Emacs' internal record of which packages are installed, and loads them. The user option @code{package-load-list} specifies which packages to load; by default, all installed packages are loaded. If called during startup, this function also sets @code{package-enable-at-startup} to @code{nil}, to avoid accidentally loading the packages twice." "The optional argument @var{no-activate}, if non-@code{nil}, causes Emacs to update its record of installed packages without actually loading them; it is for internal use only." In lispref/os.texi: "For example, you can customize the process of loading installed packages, by setting variables such as @var{package-load-list} or @var{package-enable-at-startup}. @xref{Package Installation,,, emacs,The GNU Emacs Manual}."