diff options
| author | Noam Postavsky | 2017-04-01 23:15:46 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-04-06 18:50:54 -0400 |
| commit | c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9 (patch) | |
| tree | c36467b24bef3f380c0608bb99aab201ceded29f /src/callproc.c | |
| parent | 856ec9ffa1fb4ff7e992b25bb0614ae168d5531e (diff) | |
| download | emacs-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 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 6d69e13757f..a781e47b171 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -240,6 +240,10 @@ Otherwise it waits for PROGRAM to terminate | |||
| 240 | and returns a numeric exit status or a signal description string. | 240 | and returns a numeric exit status or a signal description string. |
| 241 | If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. | 241 | If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. |
| 242 | 242 | ||
| 243 | The process runs in `default-directory' if that is local (as | ||
| 244 | determined by `unhandled-file-name-directory'), or "~" otherwise. If | ||
| 245 | you want to run a process in a remote directory use `process-file'. | ||
| 246 | |||
| 243 | usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) */) | 247 | usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) */) |
| 244 | (ptrdiff_t nargs, Lisp_Object *args) | 248 | (ptrdiff_t nargs, Lisp_Object *args) |
| 245 | { | 249 | { |