From: Philip Kaludercic Date: Mon, 31 Oct 2022 09:51:40 +0000 (+0100) Subject: ; Avoid loading package-vc in 'package-load-descriptor' X-Git-Tag: emacs-29.0.90~1616^2~307^2~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=17b017d55c49b7218a52bea3b6ddcd1705024bbe;p=emacs.git ; Avoid loading package-vc in 'package-load-descriptor' * lisp/emacs-lisp/package.el (package-load-descriptor): Remove the :commit check. The property is mostly unused anyway, and this unnecessarily slows down initialisation if a package is installed from source. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 977a16a7e19..ae3a1b7b830 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -726,10 +726,6 @@ return it." (read (current-buffer))) (error "Can't find define-package in %s" pkg-file)))) (setf (package-desc-dir pkg-desc) pkg-dir) - (when (package-vc-p pkg-desc) - (require 'package-vc) - (push (cons :commit (package-vc-commit pkg-desc)) - (package-desc-extras pkg-desc))) (if (file-exists-p signed-file) (setf (package-desc-signed pkg-desc) t)) pkg-desc)))))