From b52072ec90042e9641b0ea43796e9d4462caa0b0 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 9 Oct 2020 14:28:50 -0700 Subject: [PATCH] Search compressed .el files in load history On many installations, the .el files that are builtin to emacs are compressed. We should search these as well. Signed-off-by: Rudi Grinberg --- core/autoload/help.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index 146db99b8..a292937ce 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -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: "))