diff options
| author | Michael Albinus | 2007-07-24 20:37:43 +0000 |
|---|---|---|
| committer | Michael Albinus | 2007-07-24 20:37:43 +0000 |
| commit | 0799b7c74651411df33725b7e61bd921c2152da1 (patch) | |
| tree | 32151d580bbd4663bb3b1d8d14e131fbb8a8027e | |
| parent | 7546c767759585cc4117448b60b6bb2ff85fda59 (diff) | |
| download | emacs-0799b7c74651411df33725b7e61bd921c2152da1.tar.gz emacs-0799b7c74651411df33725b7e61bd921c2152da1.zip | |
* processes.texi (Synchronous Processes): Add
`process-file-shell-command',
(Asynchronous Processes): Mention restricted use of
`process-filter' and `process-sentinel' in
`start-file-process'. Add `start-file-process-shell-command'.
| -rw-r--r-- | lispref/ChangeLog | 8 | ||||
| -rw-r--r-- | lispref/processes.texi | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index bc81ca4d4e7..d878bc52337 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-07-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * processes.texi (Synchronous Processes): Add | ||
| 4 | `process-file-shell-command', | ||
| 5 | (Asynchronous Processes): Mention restricted use of | ||
| 6 | `process-filter' and `process-sentinel' in | ||
| 7 | `start-file-process'. Add `start-file-process-shell-command'. | ||
| 8 | |||
| 1 | 2007-07-17 Michael Albinus <michael.albinus@gmx.de> | 9 | 2007-07-17 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 10 | ||
| 3 | * files.texi (Magic File Names): Introduce optional parameter | 11 | * files.texi (Magic File Names): Introduce optional parameter |
diff --git a/lispref/processes.texi b/lispref/processes.texi index 5e74d0e247f..535c8c3f256 100644 --- a/lispref/processes.texi +++ b/lispref/processes.texi | |||
| @@ -432,6 +432,12 @@ arguments to add at the end of @var{command}. The other arguments | |||
| 432 | are handled as in @code{call-process}. | 432 | are handled as in @code{call-process}. |
| 433 | @end defun | 433 | @end defun |
| 434 | 434 | ||
| 435 | @defun process-file-shell-command command &optional infile destination display &rest args | ||
| 436 | This function is like @code{call-process-shell-command}, but uses | ||
| 437 | @code{process-file} internally. Depending on @code{default-directory}, | ||
| 438 | @var{command} can be executed also on remote hosts. | ||
| 439 | @end defun | ||
| 440 | |||
| 435 | @defun shell-command-to-string command | 441 | @defun shell-command-to-string command |
| 436 | This function executes @var{command} (a string) as a shell command, | 442 | This function executes @var{command} (a string) as a shell command, |
| 437 | then returns the command's output as a string. | 443 | then returns the command's output as a string. |
| @@ -508,6 +514,10 @@ identified by @code{default-directory}. The local part of | |||
| 508 | @var{program} and @var{program-args} might be file names. They are not | 514 | @var{program} and @var{program-args} might be file names. They are not |
| 509 | objects of file handler invocation. | 515 | objects of file handler invocation. |
| 510 | 516 | ||
| 517 | Depending on the implementation of the file handler, it might not be | ||
| 518 | possible to apply @code{process-filter} or @code{process-sentinel} to | ||
| 519 | the resulting process object (@pxref{Filter Functions}, @pxref{Sentinels}). | ||
| 520 | |||
| 511 | Some file handlers may not support @code{start-file-process} (for | 521 | Some file handlers may not support @code{start-file-process} (for |
| 512 | example @code{ange-ftp-hook-function}). It returns then @code{nil}. | 522 | example @code{ange-ftp-hook-function}). It returns then @code{nil}. |
| 513 | @end defun | 523 | @end defun |
| @@ -528,6 +538,12 @@ characters do @emph{not} have their special shell meanings. @xref{Shell | |||
| 528 | Arguments}. | 538 | Arguments}. |
| 529 | @end defun | 539 | @end defun |
| 530 | 540 | ||
| 541 | @defun start-file-process-shell-command name buffer-or-name command &rest command-args | ||
| 542 | This function is like @code{start-process-shell-command}, but uses | ||
| 543 | @code{start-file-process} internally. By this, @var{command} can be | ||
| 544 | executed also on remote hosts, depending on @code{default-directory}. | ||
| 545 | @end defun | ||
| 546 | |||
| 531 | @defvar process-connection-type | 547 | @defvar process-connection-type |
| 532 | @cindex pipes | 548 | @cindex pipes |
| 533 | @cindex @acronym{PTY}s | 549 | @cindex @acronym{PTY}s |