Function: hui-menu-program-path
hui-menu-program-path is an interactive and byte-compiled function
defined in hui-jmenu.el.
Signature
(hui-menu-program-path EXE &optional INSERT-FLAG)
Documentation
Return the full path name of the executable named by EXE.
This command searches the directories in variable exec-path(var)/exec-path(fun).
With optional prefix arg INSERT-FLAG, inserts the pathname at point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-jmenu.el
(defun hui-menu-program-path (exe &optional insert-flag)
"Return the full path name of the executable named by EXE.
This command searches the directories in variable `exec-path'.
With optional prefix arg INSERT-FLAG, inserts the pathname at point."
(interactive "sGet pathname of executable: \nP")
(catch 'answer
(mapc
(lambda (dir)
(let ((path (expand-file-name exe dir)))
(and (file-executable-p path)
(null (file-directory-p path))
(progn
(if insert-flag (insert path))
(throw 'answer path)))))
exec-path)
nil))