From aadf07f5b80467a3ca5485bc0eae7fbcb3fa0e48 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 6 Nov 2022 09:52:57 +0100 Subject: [PATCH] Autoload 'package-vc-install-selected-packages' * 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index a405a650175..e7b871e171f 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -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)) -- 2.39.2