diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-04-01 23:15:46 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-04-06 18:50:54 -0400 |
commit | c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9 (patch) | |
tree | c36467b24bef3f380c0608bb99aab201ceded29f /lisp | |
parent | 856ec9ffa1fb4ff7e992b25bb0614ae168d5531e (diff) | |
download | emacs-c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9.tar.gz emacs-c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9.tar.bz2 emacs-c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9.zip |
Mention that processes start in default-directory (Bug#18515)
* doc/lispref/processes.texi (Synchronous Processes):
(Asynchronous Processes):
* lisp/subr.el (start-process):
* src/callproc.c (call-process): Mention that the subprocess starts in
`default-directory' when local, suggest `start-file-process' and
`process-file' otherwise.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index ebac2e0ef5d..472f931306e 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1970,7 +1970,12 @@ arguments PROGRAM-ARGS are strings to give program as arguments. If you want to separate standard output from standard error, use `make-process' or invoke the command through a shell and redirect -one of them using the shell syntax." +one of them using the shell syntax. + +The process runs in `default-directory' if that is local (as +determined by `unhandled-file-name-directory'), or \"~\" +otherwise. If you want to run a process in a remote directory +use `start-file-process'." (unless (fboundp 'make-process) (error "Emacs was compiled without subprocess support")) (apply #'make-process |