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:
parent
c3604c3224
commit
c767928997
1 changed files with 1 additions and 1 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue