aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorMichael Albinus2020-05-16 14:04:07 +0200
committerMichael Albinus2020-05-16 14:04:07 +0200
commitbbbab82a7117e08a77433f5ad39b34f5e03a014c (patch)
tree52ce224c6f704873ebbb2c50d9203592c2baea5f /doc/lispref
parentdba8f3783b209fef5be2589528ed43a99a8bab6a (diff)
downloademacs-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.texi16
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
477with @code{setq}. 477with @code{setq}.
478@end defvar 478@end defvar
479 479
480@defopt process-file-return-signal-string
481This user option indicates whether a call of @code{process-file}
482returns a string describing the signal interrupting a remote process.
483
484When a process returns an exit code greater than 128, it is
485interpreted as a signal. @code{process-file} requires to return a
486string describing this signal.
487
488Since there are processes violating this rule, returning exit codes
489greater than 128 which are not bound to a signal, @code{process-file}
490returns always the exit code as natural number for remote processes.
491Setting this user option to non-nil forces @code{process-file} to
492interpret such exit codes as signals, and to return a corresponding
493string.
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
481This function sends the text from @var{start} to @var{end} as 497This function sends the text from @var{start} to @var{end} as
482standard input to a process running @var{program}. It deletes the text 498standard input to a process running @var{program}. It deletes the text