From 6ec3280a8de47f5230ad8152c833b320eb94c92a Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 19 Dec 2021 00:17:27 +0100 Subject: [PATCH] Add documentation on new function --- eshell-info-banner.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eshell-info-banner.el b/eshell-info-banner.el index 2be7ca4..14664dd 100644 --- a/eshell-info-banner.el +++ b/eshell-info-banner.el @@ -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)