]> git.eshelyaron.com Git - emacs.git/commitdiff
; Always consider :lisp-dir when locating main file of VC packages
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 25 Dec 2022 10:20:30 +0000 (11:20 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 25 Dec 2022 10:21:01 +0000 (11:21 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc--main-file): Check the
:lisp-dir entry in the "extras" of a package description to find the
directory with a main file.

lisp/emacs-lisp/package-vc.el

index 549b6e95cdb1aedceced2d6ce6eaa3d8e96190c2..b01f87d049425b759ce345b4ae2364ff8194fc89 100644 (file)
@@ -306,7 +306,9 @@ asynchronously."
          (directory (file-name-concat
                      (or (package-desc-dir pkg-desc)
                          (expand-file-name name package-user-dir))
-                     (plist-get pkg-spec :lisp-dir)))
+                     (plist-get pkg-spec :lisp-dir)
+                     (and-let* ((extras (package-desc-extras pkg-desc)))
+                       (alist-get :lisp-dir extras))))
          (file (or (plist-get pkg-spec :main-file)
                    (expand-file-name
                     (concat name ".el")