aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-01 23:15:46 -0400
committerNoam Postavsky2017-04-06 18:50:54 -0400
commitc7ed57eaef46ed74ce926fc05dec9eaa5737f3d9 (patch)
treec36467b24bef3f380c0608bb99aab201ceded29f /lisp
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 'lisp')
-rw-r--r--lisp/subr.el7
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.
1970 1970
1971If you want to separate standard output from standard error, use 1971If you want to separate standard output from standard error, use
1972`make-process' or invoke the command through a shell and redirect 1972`make-process' or invoke the command through a shell and redirect
1973one of them using the shell syntax." 1973one of them using the shell syntax.
1974
1975The process runs in `default-directory' if that is local (as
1976determined by `unhandled-file-name-directory'), or \"~\"
1977otherwise. If you want to run a process in a remote directory
1978use `start-file-process'."
1974 (unless (fboundp 'make-process) 1979 (unless (fboundp 'make-process)
1975 (error "Emacs was compiled without subprocess support")) 1980 (error "Emacs was compiled without subprocess support"))
1976 (apply #'make-process 1981 (apply #'make-process