[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading a package applies automatically to future sessions?
From: |
Stefan Monnier |
Subject: |
Re: Loading a package applies automatically to future sessions? |
Date: |
Fri, 26 Jan 2018 12:03:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Suppose the user loads a package to try it out. Will that cause it to
> be loaded again in every session? It appears that way.
> I think that asking for a package to be loaded in every session
> should be distinguished from loading it for the current session.
There are 3 different steps:
A- installing a package: this places its files under ~/.emacs.d/elpa
B- activating a package: this loads its <pkg>-autoloads.el file.
C- actually loading the package's files.
When a user does A, by default, it will do B in the current session and
causes subsequent Emacs invocations to automatically do B as well
(i.e. B is done by default on all installed packages).
You can configure `package-load-list` if you want to prevent
a particular package from being activated even though you still want it
to be installed.
But regardless, C should only happen on-demand when something actively
requests it.
Of course, a package is free to set up its autoloads such that
B causes C. I'd consider it a misfeature of that package, tho.
Stefan
- Re: [PATCH] Fixing package-initialize, adding early init file, Radon Rosborough, 2018/01/24
- Re: [PATCH] Fixing package-initialize, adding early init file, Clément Pit-Claudel, 2018/01/25
- Re: [PATCH] Fixing package-initialize, adding early init file, Stefan Monnier, 2018/01/25
- Re: [PATCH] Fixing package-initialize, adding early init file, Clément Pit-Claudel, 2018/01/25
- Re: [PATCH] Fixing package-initialize, adding early init file, Stefan Monnier, 2018/01/25
- Re: [PATCH] Fixing package-initialize, adding early init file, Eli Zaretskii, 2018/01/26
- Loading a package applies automatically to future sessions?, Richard Stallman, 2018/01/26
- Re: Loading a package applies automatically to future sessions?,
Stefan Monnier <=
- Re: Loading a package applies automatically to future sessions?, Richard Stallman, 2018/01/28
- Re: Loading a package applies automatically to future sessions?, Stefan Monnier, 2018/01/28
- Re: Loading a package applies automatically to future sessions?, Richard Stallman, 2018/01/28
- Re: Loading a package applies automatically to future sessions?, Radon Rosborough, 2018/01/29
- Re: Loading a package applies automatically to future sessions?, Radon Rosborough, 2018/01/26
- Re: Loading a package applies automatically to future sessions?, Eli Zaretskii, 2018/01/26
- Re: Loading a package applies automatically to future sessions?, Radon Rosborough, 2018/01/28
- Re: Loading a package applies automatically to future sessions?, Richard Stallman, 2018/01/28
- Re: Loading a package applies automatically to future sessions?, Richard Stallman, 2018/01/27
- Re: Loading a package applies automatically to future sessions?, Radon Rosborough, 2018/01/28