From 277915b28c6b483f66d5c9bada8c57504920eb84 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 24 Jul 2018 14:18:44 +0200 Subject: [PATCH] Fix order of +(helm|ivy)-project-search-engines --- modules/completion/helm/autoload/helm.el | 2 +- modules/completion/ivy/autoload/ivy.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index 401d1dd6e..0c1ec29b5 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -131,7 +131,7 @@ list of: ripgrep, ag, pt, git-grep and grep. If ARG (universal argument), preform search from current directory." (interactive "P") (call-interactively - (or (cl-loop for tool in (cl-remove-duplicates +helm-project-search-engines) + (or (cl-loop for tool in (cl-remove-duplicates +helm-project-search-engines :from-end t) if (executable-find (symbol-name tool)) return (intern (format "+helm/%s%s" tool (if arg "-from-cwd" "")))) (if arg diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 094f8400c..51c715dfc 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -285,7 +285,7 @@ list of: ripgrep, ag, pt, git-grep and grep. If ARG (universal argument), preform search from current directory." (interactive "P") (call-interactively - (or (cl-loop for tool in (cl-remove-duplicates +ivy-project-search-engines) + (or (cl-loop for tool in (cl-remove-duplicates +ivy-project-search-engines :from-end t) if (executable-find (symbol-name tool)) return (intern (format "+ivy/%s%s" tool (if arg "-from-cwd" "")))) (if arg