; Always consider :lisp-dir when locating main file of VC packages
* 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.
This commit is contained in:
parent
9ab98cd42a
commit
940ab2423c
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue