From 17b017d55c49b7218a52bea3b6ddcd1705024bbe Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Mon, 31 Oct 2022 10:51:40 +0100 Subject: [PATCH] ; 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. --- lisp/emacs-lisp/package.el | 4 ---- 1 file changed, 4 deletions(-) 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))))) -- 2.39.5