diff options
| author | Michael Albinus | 2020-05-16 14:04:07 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-05-16 14:04:07 +0200 |
| commit | bbbab82a7117e08a77433f5ad39b34f5e03a014c (patch) | |
| tree | 52ce224c6f704873ebbb2c50d9203592c2baea5f /doc/lispref | |
| parent | dba8f3783b209fef5be2589528ed43a99a8bab6a (diff) | |
| download | emacs-bbbab82a7117e08a77433f5ad39b34f5e03a014c.tar.gz emacs-bbbab82a7117e08a77433f5ad39b34f5e03a014c.zip | |
Introduce process-file-return-signal-string
* doc/lispref/processes.texi (Synchronous Processes):
Describe `process-file-return-signal-string'.
* doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers.
(Remote processes): Describe `process-file-return-signal-string'
and $INSIDE_EMACS.
* etc/NEWS: Describe `process-file-return-signal-string'. Fix typos.
* lisp/simple.el (process-file-return-signal-string): New user option.
* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Use it.
* lisp/net/tramp.el (tramp-get-signal-strings): New defun.
* test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/processes.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index c6e735a9b1e..22c50936185 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -477,6 +477,22 @@ You should only ever change this variable with a let-binding; never | |||
| 477 | with @code{setq}. | 477 | with @code{setq}. |
| 478 | @end defvar | 478 | @end defvar |
| 479 | 479 | ||
| 480 | @defopt process-file-return-signal-string | ||
| 481 | This user option indicates whether a call of @code{process-file} | ||
| 482 | returns a string describing the signal interrupting a remote process. | ||
| 483 | |||
| 484 | When a process returns an exit code greater than 128, it is | ||
| 485 | interpreted as a signal. @code{process-file} requires to return a | ||
| 486 | string describing this signal. | ||
| 487 | |||
| 488 | Since there are processes violating this rule, returning exit codes | ||
| 489 | greater than 128 which are not bound to a signal, @code{process-file} | ||
| 490 | returns always the exit code as natural number for remote processes. | ||
| 491 | Setting this user option to non-nil forces @code{process-file} to | ||
| 492 | interpret such exit codes as signals, and to return a corresponding | ||
| 493 | string. | ||
| 494 | @end defopt | ||
| 495 | |||
| 480 | @defun call-process-region start end program &optional delete destination display &rest args | 496 | @defun call-process-region start end program &optional delete destination display &rest args |
| 481 | This function sends the text from @var{start} to @var{end} as | 497 | This function sends the text from @var{start} to @var{end} as |
| 482 | standard input to a process running @var{program}. It deletes the text | 498 | standard input to a process running @var{program}. It deletes the text |