Add documentation on new function

This commit is contained in:
Lucien Cartier-Tilet 2021-12-19 00:17:27 +01:00
parent 257ece43e6
commit 6ec3280a8d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@
`(propertize ,str 'face (list ,@properties)))
(defun eshell-info-banner--executable-find (program &optional remote)
"Find PROGRAM executable, possibly on a REMOTE machine.
This is a wrapper around `executable-find' in order to avoid
issues with older versions of the functions only accepting one
argument."
(if (version< emacs-version "27.1")
(let ((default-directory (if (and eshell-info-banner-tramp-aware
remote)