From a6dc6275f8426c5d47457adcd62d21736380fe37 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 19 Sep 2020 14:38:53 -0400 Subject: [PATCH] Fix #3960: make prefix arg consistent in +default/search-project Is documented to include ignored/hidden files in the search result, but would prompt for another project instead. --- modules/config/default/autoload/search.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config/default/autoload/search.el b/modules/config/default/autoload/search.el index 118982b33..41bd8489c 100644 --- a/modules/config/default/autoload/search.el +++ b/modules/config/default/autoload/search.el @@ -33,13 +33,13 @@ If a selection is active, pre-fill the prompt with it." ;;;###autoload (defun +default/search-project (&optional arg) "Conduct a text search in the current project root. -If prefix ARG is set, prompt for a known project to search from." +If prefix ARG is set, include ignored/hidden files." (interactive "P") (let* ((projectile-project-root nil) (disabled-command-function nil) - (current-prefix-arg nil) + (current-prefix-arg (unless (eq arg 'other) arg)) (default-directory - (if arg + (if (eq arg 'other) (if-let (projects (projectile-relevant-known-projects)) (completing-read "Search project: " projects nil t) (user-error "There are no known projects"))