From f782b0d0214f2256e43b8eb2656e23f8bf465c91 Mon Sep 17 00:00:00 2001 From: Caramel Hooves Date: Wed, 24 Sep 2025 13:37:41 -0700 Subject: [PATCH] fix(vertico): search for ripgrep on remote machine When default-directory is is located on a remote host, we should search for "rg" on the remote host. (executable-find) without the optional 't' will search only on the local host. Fix: #8525 --- modules/completion/vertico/autoload/vertico.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/completion/vertico/autoload/vertico.el b/modules/completion/vertico/autoload/vertico.el index c0dd86124..a5a1e5e38 100644 --- a/modules/completion/vertico/autoload/vertico.el +++ b/modules/completion/vertico/autoload/vertico.el @@ -17,7 +17,7 @@ :args LIST Arguments to be appended to `consult-ripgrep-args'." (declare (indent defun)) - (unless (executable-find "rg") + (unless (executable-find "rg" t) (user-error "Couldn't find ripgrep in your PATH")) (require 'consult) (setq deactivate-mark t)