Function: ghostel--resolve-local-executable
ghostel--resolve-local-executable is a natively compiled function
defined in ghostel.el.
Signature
(ghostel--resolve-local-executable PROGRAM)
Documentation
Return the absolute local executable path for PROGRAM.
Bare program names are resolved via variable exec-path(var)/exec-path(fun). PROGRAM with a
directory component is expanded relative to default-directory.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--resolve-local-executable (program)
"Return the absolute local executable path for PROGRAM.
Bare program names are resolved via variable `exec-path'. PROGRAM with a
directory component is expanded relative to `default-directory'."
(let ((resolved (if (file-name-directory program)
(expand-file-name program)
(executable-find program))))
(unless (and resolved (file-executable-p resolved))
(error "Searching for program: No such file or directory, %s" program))
resolved))