For testing other issues I have, I start emacs with -Q
, to avoid the probable errors in my init file.
In that emacs session, running M-x package-list-packages
still shows me all the packages that I install in my ~/.emacs.d/init.el.
This surprises me, I thought that I would have that emacs session clean.
What is happening? Is package-list-packages
just showing what it finds in a cache, rather than what is actually available in that session? How to I verify which packages are actually used in that session?
To be clear, in response to the comment from @g-gundam:
emacs -Q
followed by M-x package-list-packages
lists packages as "installed". These packages are the ones my the init file, the ones that would have been used without -Q
.
Maybe relevant, my init file (should not be used since -Q
) starts with this:
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
installed
? When I runemacs -Q
and doM-x package-list-packages
, I only have status values ofavailable
,built-in
, andincompat
. See gist.github.com/g-gundam/ecedd188f5b17144b41b11727072e55eHOME=/tmp emacs