Merge pull request #4067 from rgrinberg/search-compressed

Search compressed .el files in load history
This commit is contained in:
Henrik Lissner 2020-10-09 18:34:14 -04:00 committed by GitHub
commit 7833cee77b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -662,6 +662,7 @@ Uses the symbol at point or the current selection, if available."
(doom--help-search
(cl-loop for (file . _) in (cl-remove-if-not #'stringp load-history :key #'car)
for filebase = (file-name-sans-extension file)
if (file-exists-p! (format "%s.el" filebase))
if (file-exists-p! (or (format "%s.el.gz" filebase)
(format "%s.el" filebase)))
collect it)
query "Search loaded files: "))