Function: hpath:find-executable
hpath:find-executable is a byte-compiled function defined in hpath.el.
Signature
(hpath:find-executable EXECUTABLE-LIST)
Documentation
Return first executable string from EXECUTABLE-LIST in variable exec-path(var)/exec-path(fun).
Return nil if none are found.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:find-executable (executable-list)
"Return first executable string from EXECUTABLE-LIST in variable `exec-path'.
Return nil if none are found."
(catch 'found
(mapc
(lambda (executable)
(if (stringp executable)
;; Match only to files with execute permission.
(if (locate-file executable exec-path nil #'file-executable-p)
(throw 'found executable))
(error "(hpath:find-executable): Non-string entry, %s"
executable-list)))
executable-list)
nil))