1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 03:52:16 -08:00
emacs/etc
Jim Porter d7b89ea407 Allow creating processes where only one of stdin or stdout is a PTY
* src/lisp.h (emacs_spawn):
* src/callproc.c (emacs_spawn): Add PTY_IN and PTY_OUT arguments to
specify which streams should be set up as a PTY.
(call_process): Adjust call to 'emacs_spawn'.

* src/process.h (Lisp_Process): Replace 'pty_flag' with 'pty_in' and
'pty_out'.

* src/process.c (is_pty_from_symbol): New function.
(make-process): Allow :connection-type to be a cons cell, and allow
using a stderr process with a PTY for stdin/stdout.
(create_process): Handle creating a process where only one of stdin or
stdout is a PTY.

* lisp/eshell/esh-proc.el (eshell-needs-pipe, eshell-needs-pipe-p):
Remove.
(eshell-gather-process-output): Use 'make-process' and set
':connection-type' as needed by the value of 'eshell-in-pipeline-p'.

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't signal an
error when ':connection-type' is a cons cell.

* test/src/process-tests.el
(process-test-sentinel-wait-function-working-p): Allow passing PROC
in, and rework into...
(process-test-wait-for-sentinel): ... this.
(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for, process-test-quoted-batfile)
(process-test-stderr-filter): Use 'process-test-wait-for-sentinel'.
(make/process/test-connection-type): New function.
(make-process/connection-type/pty, make-process/connection-type/pty-2)
(make-process/connection-type/pipe)
(make-process/connection-type/pipe-2)
(make-process/connection-type/in-pty)
(make-process/connection-type/out-pty)
(make-process/connection-type/pty-with-stderr-buffer)
(make-process/connection-type/out-pty-with-stderr-buffer): New tests.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test--detect-pty-cmd):
New variable.
(esh-proc-test/pipeline-connection-type/no-pipeline)
(esh-proc-test/pipeline-connection-type/first)
(esh-proc-test/pipeline-connection-type/middle)
(esh-proc-test/pipeline-connection-type/last): New tests.

* doc/lispref/processes.texi (Asynchronous Processes): Document new
':connection-type' behavior.
(Output from Processes): Remove caveat about ':stderr' forcing
'make-process' to use pipes.

* etc/NEWS: Announce this change (bug#56025).
2022-08-05 17:58:54 -07:00
..
charsets ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
e Implement alternative sub-buffer support in term.el 2022-01-24 20:02:33 +01:00
forms ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gnus
images ; Fix typos 2022-07-19 14:13:25 +02:00
nxml
org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
refcards Merge from origin/emacs-28 2022-06-05 06:30:25 +02:00
schema ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
srecode Adjust better to Autoconf quoting style change 2022-07-05 23:27:17 -05:00
themes Update modus-themes to their version 2.5.0 2022-08-03 14:36:47 +03:00
tutorials ; Fix typos. 2022-07-02 13:32:41 +02:00
AUTHORS ; Update ChangeLog and AUTHORS 2022-08-01 18:13:13 +02:00
CALC-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
compilation.txt Add test for the gradle-android compilation message pattern 2022-07-11 12:29:12 +02:00
COPYING
DEBUG Support for debugging Emacs with LLDB 2022-07-11 14:08:05 +02:00
DEVEL.HUMOR ; * etc/DEVEL.HUMOR: Add a recent joke. 2022-02-11 10:15:20 +02:00
DISTRIB ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edt-user.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-buffer.gdb ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs.service
emacs_lldb.py ; * etc/emacs_lldb.py: Don't print '->' in type summary 2022-08-02 09:12:47 +02:00
emacsclient-mail.desktop
emacsclient.desktop
enriched.txt Document 'enriched-toggle-markup' 2022-05-20 15:03:06 +03:00
ERC-NEWS Update ERC's Info doc with network-ID related changes 2022-06-30 15:19:53 -07:00
ETAGS.EBNF ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ETAGS.README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
future-bug
gnus-tut.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
grep.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
HELLO Add support for the Meetei Mayek script 2022-06-13 16:55:20 +03:00
HISTORY Update logs and HISTORY for Emacs 28.1 2022-04-03 08:26:02 -04:00
JOKES
MACHINES Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
MH-E-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS Allow creating processes where only one of stdin or stdout is a PTY 2022-08-05 17:58:54 -07:00
NEWS.1-17 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.18 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.19 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.20 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.21 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.22 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.23 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.24 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.25 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.26 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.27 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.28 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEXTSTEP ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NXML-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ORG-NEWS ; Fix typos: prefer American spelling 2022-07-13 13:04:22 +02:00
org.gnu.emacs.defaults.gschema.xml ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
package-keyring.gpg
PROBLEMS Merge branch 'feature/fix-the-long-lines-display-bug' 2022-07-21 12:37:45 +02:00
ps-prin0.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ps-prin1.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
publicsuffix.txt Update publicsuffix.txt from upstream 2022-08-01 06:01:07 +02:00
README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rgb.txt
ses-example.ses ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
spook.lines
TERMS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
TODO Improve multi-pointer X support 2022-08-05 13:23:39 +08:00
w32-feature.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2022 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)