Function: exec-path

exec-path is a byte-compiled function defined in files.el.gz.

Signature

(exec-path)

Documentation

Return list of directories to search programs to run in remote subprocesses.

The remote host is identified by default-directory. For remote hosts that do not support subprocesses, this returns nil. If default-directory is a local directory, this function returns the value of the variable exec-path(var)/exec-path(fun).

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun exec-path ()
  "Return list of directories to search programs to run in remote subprocesses.
The remote host is identified by `default-directory'.  For remote
hosts that do not support subprocesses, this returns nil.
If `default-directory' is a local directory, this function returns
the value of the variable `exec-path'."
  (let ((handler (find-file-name-handler default-directory 'exec-path)))
    (if handler
	(funcall handler 'exec-path)
      exec-path)))