Skip to content

Commit

Permalink
Tune library scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Jan 20, 2025
1 parent 3f3799f commit 0741b66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions after-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,7 @@ the library and PATH is the file containing the library."
(require 'find-func)
(let ((cache (make-hash-table :test 'equal))
(dirs (or find-library-source-path load-path))
(suffixes-pat (concat (regexp-opt (cl-remove
""
(append (find-library-suffixes)
load-file-rep-suffixes)
:test #'equal))
(suffixes-pat (concat (regexp-opt (find-library-suffixes))
(rx string-end)))
(skip-files-pat
(rx (or
Expand Down Expand Up @@ -423,7 +419,7 @@ the library and PATH is the file containing the library."
((file-regular-p path)))
(puthash basename t cache)
(cons basename path)))
(directory-files dir nil suffixes-pat))))
(directory-files dir nil suffixes-pat t))))
dirs)))))

(defun pk/async-locate-library-scan ()
Expand Down

0 comments on commit 0741b66

Please sign in to comment.