From 49b735430be2a47480c04bfab95fd854a118d573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kryger?= Date: Wed, 4 Dec 2024 09:46:04 +0000 Subject: [PATCH] Ensure package is selected when force installed from ELPA --- modules/init-lib.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/init-lib.el b/modules/init-lib.el index 4ca6fd4d..5c886553 100644 --- a/modules/init-lib.el +++ b/modules/init-lib.el @@ -124,6 +124,7 @@ It makes buffer local variable with an extra back tick added." ((not (package-installed-p package archive-version))) ((version-list-< builtin-version archive-version))) (use-package-pin-package package ,archive) + (package--save-selected-packages (cons name package-selected-packages)) (condition-case-unless-debug err (let* ((package-install-upgrade-built-in t) (transaction (package-compute-transaction