From 0e2c642a8622e97b211bae3ecbf0c29125df7173 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 1 Nov 2019 10:30:56 +0900 Subject: [PATCH 1/2] Fix autoload cookie for doom/help-search-loaded-files Signed-off-by: Rudi Grinberg --- core/autoload/help.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index a524ba34b..b28c8dd5f 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -623,7 +623,7 @@ Uses the symbol at point or the current selection, if available." " "))) ;; TODO factor our the duplicate code between this and the above -;;;autoload +;;;###autoload (defun doom/help-search-loaded-files (query) "Perform a text search on your `load-path'. Uses the symbol at point or the current selection, if available." From 7900cef7da15188811d72a7fc63d1f3a305f754f Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 1 Nov 2019 10:42:39 +0900 Subject: [PATCH 2/2] Follow symlinks when searching autoloads Signed-off-by: Rudi Grinberg --- core/autoload/help.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index b28c8dd5f..ff867755b 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -614,7 +614,7 @@ Uses the symbol at point or the current selection, if available." (mapconcat #'shell-quote-argument (cond ((executable-find "rg") - `("rg" "--search-zip" "--no-heading" "--color=never" + `("rg" "-L" "--search-zip" "--no-heading" "--color=never" ,query ,@(cl-remove-if-not #'file-directory-p load-path))) ((executable-find "ag") `("ag" "--search-zip" "--nogroup" "--nocolor" @@ -645,7 +645,7 @@ Uses the symbol at point or the current selection, if available." #'shell-quote-argument (let ((search (elisp-refs--loaded-paths))) (cond ((executable-find "rg") - `("rg" "--search-zip" "--no-heading" "--color=never" + `("rg" "-L" "--search-zip" "--no-heading" "--color=never" ,query ,@(cl-remove-if-not #'file-directory-p search))) ((executable-find "ag") `("ag" "--search-zip" "--nogroup" "--nocolor"