aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/files.texi13
-rw-r--r--doc/lispref/processes.texi8
-rw-r--r--doc/misc/tramp.texi6
3 files changed, 19 insertions, 8 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index f4678ddd846..068cf054437 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1567,13 +1567,16 @@ For compatibility, @var{predicate} can also be one of the symbols
1567a list of one or more of these symbols. 1567a list of one or more of these symbols.
1568@end defun 1568@end defun
1569 1569
1570@defun executable-find program 1570@defun executable-find program &optional remote
1571This function searches for the executable file of the named 1571This function searches for the executable file of the named
1572@var{program} and returns the absolute file name of the executable, 1572@var{program} and returns the absolute file name of the executable,
1573including its file-name extensions, if any. It returns @code{nil} if 1573including its file-name extensions, if any. It returns @code{nil} if
1574the file is not found. The functions searches in all the directories 1574the file is not found. The function searches in all the directories
1575in @code{exec-path}, and tries all the file-name extensions in 1575in @code{exec-path}, and tries all the file-name extensions in
1576@code{exec-suffixes} (@pxref{Subprocess Creation}). 1576@code{exec-suffixes} (@pxref{Subprocess Creation}).
1577
1578If @var{remote} is non-@code{nil}, and @code{default-directory} is a
1579remote directory, @var{program} is searched on the respective remote host.
1577@end defun 1580@end defun
1578 1581
1579@node Changing Files 1582@node Changing Files
@@ -3137,8 +3140,8 @@ first, before handlers for jobs such as remote file access.
3137@code{directory-file-name}, 3140@code{directory-file-name},
3138@code{directory-files}, 3141@code{directory-files},
3139@code{directory-files-and-attributes}, 3142@code{directory-files-and-attributes},
3140@code{dired-compress-file}, @code{dired-uncache},@* 3143@code{dired-compress-file}, @code{dired-uncache},
3141@code{expand-file-name}, 3144@code{exec-path}, @code{expand-file-name},@*
3142@code{file-accessible-directory-p}, 3145@code{file-accessible-directory-p},
3143@code{file-acl}, 3146@code{file-acl},
3144@code{file-attributes}, 3147@code{file-attributes},
@@ -3195,7 +3198,7 @@ first, before handlers for jobs such as remote file access.
3195@code{directory-files}, 3198@code{directory-files},
3196@code{directory-files-and-at@discretionary{}{}{}tributes}, 3199@code{directory-files-and-at@discretionary{}{}{}tributes},
3197@code{dired-compress-file}, @code{dired-uncache}, 3200@code{dired-compress-file}, @code{dired-uncache},
3198@code{expand-file-name}, 3201@code{exec-path}, @code{expand-file-name},
3199@code{file-accessible-direc@discretionary{}{}{}tory-p}, 3202@code{file-accessible-direc@discretionary{}{}{}tory-p},
3200@code{file-acl}, 3203@code{file-acl},
3201@code{file-attributes}, 3204@code{file-attributes},
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 3e26f577982..f78d8485e4e 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -177,6 +177,14 @@ before starting Emacs. Trying to modify @code{exec-path}
177independently of @env{PATH} can lead to confusing results. 177independently of @env{PATH} can lead to confusing results.
178@end defopt 178@end defopt
179 179
180@defun exec-path
181The function @code{exec-path} is an extension of the respective
182variable. If @code{default-directory} indicates a remote directory,
183it returns a list of directories used for searching programs on the
184respective remote host. In case of a local @code{default-directory},
185the function returns just the value of the variable @code{exec-path}.
186@end defun
187
180@node Shell Arguments 188@node Shell Arguments
181@section Shell Arguments 189@section Shell Arguments
182@cindex arguments for shell commands 190@cindex arguments for shell commands
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 420fef7164c..a9de1fddc66 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1816,9 +1816,9 @@ shell supports the login argument @samp{-l}.
1816@end defopt 1816@end defopt
1817 1817
1818When remote search paths are changed, local @value{tramp} caches must 1818When remote search paths are changed, local @value{tramp} caches must
1819be recomputed. To force @value{tramp} to recompute afresh, exit 1819be recomputed. To force @value{tramp} to recompute afresh, call
1820Emacs, remove the persistent file (@pxref{Connection caching}), and 1820@kbd{M-x tramp-cleanup-this-connection @key{RET}} or friends
1821restart Emacs. 1821(@pxref{Cleanup remote connections}).
1822 1822
1823 1823
1824@node Remote shell setup 1824@node Remote shell setup