@end defopt
@defun exec-path
-The function @code{exec-path} is an extension of the respective
-variable. If @code{default-directory} indicates a remote directory,
-it returns a list of directories used for searching programs on the
+This function is an extension of the variable @code{exec-path}. If
+@code{default-directory} indicates a remote directory, this function
+returns a list of directories used for searching programs on the
respective remote host. In case of a local @code{default-directory},
the function returns just the value of the variable @code{exec-path}.
@end defun
** The German prefix and postfix input methods now support Capital sharp S.
+++
-** The new function 'exec-path' returns a directory list from a remote host.
+** New function 'exec-path'.
+This function by default returns the value of the corresponding
+variable, but can optionally return the equivalent of 'exec-path'
+from a remote host.
+++
-** Function 'executable-find' supports an optional argument REMOTE.
-This triggers to search a program name on the remote host indicated by
+** The function 'executable-find' supports an optional argument REMOTE.
+This triggers to search the program on the remote host as indicated by
'default-directory'.
\f
bestname))))
(defun exec-path ()
- "List of directories to search programs to run in remote subprocesses.
+ "Return list of directories to search programs to run in remote subprocesses.
The remote host is identified by `default-directory'. For remote
hosts which do not support subprocesses, this returns `nil'.
-If `default-directory' is a local directory, the value of the variable
-`exec-path' is returned."
+If `default-directory' is a local directory, this function retruns
+the value of the variable `exec-path'."
(let ((handler (find-file-name-handler default-directory 'exec-path)))
(if handler
(funcall handler 'exec-path)