]> git.eshelyaron.com Git - emacs.git/commitdiff
Autoload 'package-vc-install-selected-packages'
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 6 Nov 2022 08:52:57 +0000 (09:52 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:37:28 +0000 (20:37 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Add an
autoload cookie.
(package-vc-selected-packages): Set
:initialize to 'custom-initialize-default'.

lisp/emacs-lisp/package-vc.el

index a405a65017507a78b1a3309af4ff28483c173429..e7b871e171f22909eda4d14e2bb94de18261fd92 100644 (file)
@@ -118,6 +118,8 @@ the `clone' function."
   :version "29.1")
 
 (defvar package-vc-selected-packages) ; pacify byte-compiler
+
+;;;###autoload
 (defun package-vc-install-selected-packages ()
   "Ensure packages specified in `package-vc-selected-packages' are installed."
   (interactive)
@@ -161,6 +163,7 @@ function `package-vc-selected-packages' to apply the changes."
                                          (:lisp-dir string)
                                          (:main-file string)
                                          (:vc-backend symbol)))))
+  :initialize #'custom-initialize-default
   :set (lambda (sym val)
          (custom-set-default sym val)
          (package-vc-install-selected-packages))