Function: marginalia--library-cache
marginalia--library-cache is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia--library-cache)
Documentation
Return hash table from library name to library file.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia--library-cache ()
"Return hash table from library name to library file."
(marginalia--in-minibuffer
;; `locate-file' and `locate-library' are bottlenecks for the
;; annotator. Therefore we compute all the library paths first.
(unless marginalia--library-cache
(setq marginalia--library-cache (make-hash-table :test #'equal))
(dolist (dir (delete-dups
(reverse ;; Reverse because of shadowing
(append load-path (custom-theme--load-path))))) ;; Include themes
(dolist (file (ignore-errors
(directory-files dir 'full
"\\.el\\(?:\\.gz\\)?\\'")))
(puthash (marginalia--library-name file)
file marginalia--library-cache))))
marginalia--library-cache))