emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/package+vc 17b017d55c: ; Avoid loading package-vc in 'package-lo


From: Philip Kaludercic
Subject: feature/package+vc 17b017d55c: ; Avoid loading package-vc in 'package-load-descriptor'
Date: Mon, 31 Oct 2022 05:51:50 -0400 (EDT)

branch: feature/package+vc
commit 17b017d55c49b7218a52bea3b6ddcd1705024bbe
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    ; 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 977a16a7e1..ae3a1b7b83 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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]