branch: externals/consult-hoogle
commit 42fa72c9e44e464801531d193e6edf45da6b2ee8
Author: George Huebner <[email protected]>
Commit: Rahguzar <[email protected]>

    Support using a remote hoogle binary
    
    Copyright-paperwork-exempt: Yes
---
 consult-hoogle.el | 3 ++-
 hoogle-buffer.el  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/consult-hoogle.el b/consult-hoogle.el
index 11a02d20bb1..4b451eb48c9 100644
--- a/consult-hoogle.el
+++ b/consult-hoogle.el
@@ -161,7 +161,7 @@ we use the same buffer throughout."
 (defun consult-hoogle--source (&optional command)
   "Return an async source to search with hoogle using COMMAND."
   (let* ((command (or command hoogle-base-args))
-         (exe (or (executable-find (car command))
+         (exe (or (executable-find (car command) t)
                   (error "Executable %s not found on path" (car command))))
          (command `(,exe . ,(cdr command))))
     (consult--process-collection
@@ -170,6 +170,7 @@ we use the same buffer throughout."
             (unless (string-blank-p query)
               (cons (append command opts (list query))
                     (cdr (consult--default-regexp-compiler input 'basic t))))))
+      :file-handler t
       :transform (consult--async-transform #'consult-hoogle--format)
       :highlight t)))
 
diff --git a/hoogle-buffer.el b/hoogle-buffer.el
index 07251323a59..aa1ac4d659e 100644
--- a/hoogle-buffer.el
+++ b/hoogle-buffer.el
@@ -255,6 +255,7 @@ hoogle.haskell.org is used. See `hoogle-buffer-args' for 
customization."
              (proc (make-process :name "*hoogle-process*" :buffer proc-buffer
                                  :noquery t :connection-type 'pipe
                                  :command `(,@hoogle-base-args ,query)
+                                 :file-handler t
                                  :filter #'hoogle-buffer--filter
                                  :sentinel #'hoogle-buffer--sentinel)))
         (process-put proc 'results-buffer results-buffer)

Reply via email to