aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-01 23:15:46 -0400
committerNoam Postavsky2017-04-06 18:50:54 -0400
commitc7ed57eaef46ed74ce926fc05dec9eaa5737f3d9 (patch)
treec36467b24bef3f380c0608bb99aab201ceded29f /doc
parent856ec9ffa1fb4ff7e992b25bb0614ae168d5531e (diff)
downloademacs-c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9.tar.gz
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 'doc')
-rw-r--r--doc/lispref/processes.texi13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 2a79cc781f8..2acb7c99e02 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -300,8 +300,11 @@ system, much like text written into a file. @xref{Coding Systems}.
300@defun call-process program &optional infile destination display &rest args 300@defun call-process program &optional infile destination display &rest args
301This function calls @var{program} and waits for it to finish. 301This function calls @var{program} and waits for it to finish.
302 302
303The current working directory of the subprocess is 303The current working directory of the subprocess is set to the current
304@code{default-directory}. 304buffer's value of @code{default-directory} if that is local (as
305determined by @code{unhandled-file-name-directory}), or "~" otherwise.
306If you want to run a process in a remote directory use
307@code{process-file}.
305 308
306The standard input for the new process comes from file @var{infile} if 309The standard input for the new process comes from file @var{infile} if
307@var{infile} is not @code{nil}, and from the null device otherwise. 310@var{infile} is not @code{nil}, and from the null device otherwise.
@@ -677,6 +680,12 @@ created with @code{make-pipe-process}, described below.
677 680
678The original argument list, modified with the actual connection 681The original argument list, modified with the actual connection
679information, is available via the @code{process-contact} function. 682information, is available via the @code{process-contact} function.
683
684The current working directory of the subprocess is set to the current
685buffer's value of @code{default-directory} if that is local (as
686determined by `unhandled-file-name-directory'), or "~" otherwise. If
687you want to run a process in a remote direcotry use
688@code{start-file-process}.
680@end defun 689@end defun
681 690
682@defun make-pipe-process &rest args 691@defun make-pipe-process &rest args