Mercurial > emacs
comparison lisp/simple.el @ 94808:8b60ad9b42c3
* simple.el (start-file-process): Clarify docstring.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Fri, 09 May 2008 17:39:33 +0000 |
parents | ee5932bf781d |
children | 380e5a5c73ea |
comparison
equal
deleted
inserted
replaced
94807:d58ec1c0d828 | 94808:8b60ad9b42c3 |
---|---|
2434 (when stderr-file (delete-file stderr-file)) | 2434 (when stderr-file (delete-file stderr-file)) |
2435 (when lc (delete-file lc))))) | 2435 (when lc (delete-file lc))))) |
2436 | 2436 |
2437 (defun start-file-process (name buffer program &rest program-args) | 2437 (defun start-file-process (name buffer program &rest program-args) |
2438 "Start a program in a subprocess. Return the process object for it. | 2438 "Start a program in a subprocess. Return the process object for it. |
2439 | |
2439 Similar to `start-process', but may invoke a file handler based on | 2440 Similar to `start-process', but may invoke a file handler based on |
2440 `default-directory'. The current working directory of the | 2441 `default-directory'. See Info node `(elisp)Magic File Names'. |
2441 subprocess is `default-directory'. | 2442 |
2443 This handler ought to run PROGRAM, perhaps on the local host, | |
2444 perhaps on a remote host that corresponds to `default-directory'. | |
2445 In the latter case, the local part of `default-directory' becomes | |
2446 the working directory of the process. | |
2442 | 2447 |
2443 PROGRAM and PROGRAM-ARGS might be file names. They are not | 2448 PROGRAM and PROGRAM-ARGS might be file names. They are not |
2444 objects of file handler invocation." | 2449 objects of file handler invocation." |
2445 (let ((fh (find-file-name-handler default-directory 'start-file-process))) | 2450 (let ((fh (find-file-name-handler default-directory 'start-file-process))) |
2446 (if fh (apply fh 'start-file-process name buffer program program-args) | 2451 (if fh (apply fh 'start-file-process name buffer program program-args) |