1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Only search for package descriptors in package root

See the following thread for a background on this change:
https://mail.gnu.org/archive/html/emacs-devel/2025-08/msg00332.html.
This change reverts b81f937e.

* lisp/emacs-lisp/package.el (package-dir-info): Do not
recursively try to find all Lisp files that might have package
metadata.  (Bug#79742)
This commit is contained in:
Philip Kaludercic 2025-11-23 11:30:33 +01:00
parent c3604c3224
commit c767928997
No known key found for this signature in database

View file

@ -1279,7 +1279,7 @@ The return result is a `package-desc'."
(catch 'found
(let ((files (or (and (derived-mode-p 'dired-mode)
(dired-get-marked-files nil 'marked))
(directory-files-recursively default-directory "\\.el\\'"))))
(directory-files default-directory t "\\.el\\'" t))))
;; We sort the file names in lexicographical order, to ensure
;; that we check shorter file names first (ie. those further
;; up in the directory structure).