From 92b98bed119907569e82fc4afd7a7a18edd207c8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 May 2020 17:33:57 -0400 Subject: [PATCH] Fix doom/help-search-loaded-files Would throw a string type error because load-history doesn't only contain sublists whose CARs are strings. --- core/autoload/help.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index 4bff9a079..77f118461 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -660,8 +660,9 @@ Uses the symbol at point or the current selection, if available." Uses the symbol at point or the current selection, if available." (interactive (list (doom--help-search-prompt "Search loaded files: "))) - (let ((paths (cl-loop for (file . _) in load-history - for filebase = (file-name-sans-extension file) - if (file-exists-p! (format "%s.el" filebase)) - collect it))) - (doom--help-search paths query "Search loaded files: "))) + (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)) + collect it) + query "Search loaded files: "))