emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra 5db2513 341/395: Recognize remote executables


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 5db2513 341/395: Recognize remote executables in Emacs >= 27.1.
Date: Thu, 25 Feb 2021 08:32:34 -0500 (EST)

branch: externals/ivy-hydra
commit 5db2513763b5b9e3bada34b786c7e66b00be6d64
Author: Murilo Pereira <murilo@murilopereira.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    Recognize remote executables in Emacs >= 27.1.
    
    `default-directory' no longer affects `executable-find'
    by default on Emacs 27.1+.
    
    ```
    (executable-find COMMAND &optional REMOTE)
    
    Documentation
    Search for COMMAND in exec-path and return the absolute file name.
    
    Return nil if COMMAND is not found anywhere in exec-path.  If
    REMOTE is non-nil, search on the remote host indicated by
    default-directory instead.
    ```
    
    Fixes #2618
---
 counsel.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index f8a7422..914f7b2 100644
--- a/counsel.el
+++ b/counsel.el
@@ -124,7 +124,9 @@ To skip the `executable-find' check, start the string with 
a space."
                      (car (split-string cmd)))))
       (or (and (stringp program)
                (not (string= program ""))
-               (executable-find program))
+               (if (<= 27 emacs-major-version)
+                   (executable-find program t)
+                 (executable-find program)))
           (user-error "Required program \"%s\" not found in your path" 
program)))))
 
 (declare-function eshell-split-path "esh-util")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]