| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
if enable-multibyte-characters is nil. Initialize members
decoding_carryover and encoding_carryover of PROC.
(create_process): Adjusted for the change of encode_coding.
(Fopen_network_stream): Initialize members decoding_carryover and
encoding_carryover of PROC.
(read_process_output): Adjusted for the change of decode_coding.
(send_process): Adjusted for the change of encode_coding.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
(read_process_output): New var `multibyte'.
Set it according to which coding system was used.
(read_process_output): Handle bytes vs chars.
(send_process): Use size_byte of OBJECT.
(Fprocess_send_string): Pass size_byte to send_process.
|
| |
|
|
|
|
| |
(Fprocess_send_region): Make bytepos for send_process.
(read_process_output): Save, restore, and update both kinds of ptrs.
(send_process): OFFSET is now in bytes.
|
| |
|
|
|
|
|
|
|
| |
proc_encode_coding_system[p->outfd] is NULL, instead of allocating
`struct coding_system' for encoding, just skip setting up coding
system for encoding. Set Vlast_coding_system_used after some text
is read.
(send_process): Set Vlast_coding_system_used after deciding a
coding system to be used for encoding.
|
| |
|
|
| |
not already done.
|
| |
|
|
|
| |
(kill_buffer_processes, status_notify): Return void.
(Fstart_process): Cast arg to create_process.
|
| |
|
|
|
| |
(read_process_output): Use new macros defined in coding.h.
(send_process): Likewise.
|
| | |
|
| |
|
|
|
| |
proc_encode_coding_system should be p->outfd (not `channel' which
is p->infd).
|
| |
|
|
| |
(Fprocess_coding_system): Likewise.
|
| |
|
|
|
|
|
|
| |
for proc_decode_coding_system[channel]. It is already done in
detect_coding called via decode_coding.
(wait_reading_process_input): Call detect_input_pending
whenever read_kbd is 0, not just when wait_for_cell.
|
| |
|
|
|
| |
CODING_REQUIRE_NO_CONVERSION
(send_process): Use new macro CODING_MAY_REQUIRE_NO_CONVERSION.
|
| |
|
|
| |
Check for read_process_output giving back EIO.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
nil, set coding system for decoding output of process to
emacs-mule, and set coding system for encoding to nil.
(Fopen_network_stream): If enable-multibyte-characters is nil, set
coding systems for decoding and encoding to nil.
|
| | |
|
| |
|
|
| |
(Fopen_network_stream): Likewise.
|
| |
|
|
| |
(read_process_output): Use read instead of READ_CHILD_OUTPUT.
|
| |
|
|
|
|
| |
do check for keyboard input and swallow events, just don't exit.
(max): New macro.
(wait_reading_process_input): Pass a smaller first arg to select.
|
| |
|
|
| |
keyboard input if wait_for_cell.
|
| | |
|
| |
|
|
| |
Don't close the output descriptor if that is also the input descriptor.
|
| | |
|
| | |
|
| |
|
|
| |
the process WAIT_PROC has terminated, first read all its output.
|
| | |
|
| |
|
|
|
| |
Vdefault_process_coding_system.
(Fopen_network_stream): Likewise.
|
| |
|
|
|
|
| |
based on actual buffer change rather than size of string.
old_begv and old_zv are now ints.
(status_notify): Likewise for opoint.
|
| | |
|
| |
|
|
|
|
|
|
| |
ignore subprocess input and respond only to keyboard.
(non_process_wait_mask): New variable.
(add_keyboard_wait_descriptor): Update it.
(delete_keyboard_wait_descriptor): Update it.
(init_process): Initialize it.
|
| |
|
|
| |
character code conversion if enable-multibyte-characters is nil.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(proc_decode_coding_system, proc_encode_coding_system): New
variables.
(Fstart_process, create_process, Fopen_network_stream): Setup
coding systems for character code conversion.
(READ_CHILD_OUTPUT): New macro.
(read_process_output): Perform character code conversion of a
process output.
(send_process): Perform character code conversion of a text sent
to a process.
(Fset_process_coding_system, Fprocess_coding_system): New
functions.
(syms_of_process): Handle them.
|
| |
|
|
| |
(create_process): Block input around the fork.
|
| |
|
|
| |
Call Fmatch_data with new explicit arguments.
|
| |
|
|
| |
When we wait for the buffer to clear, wait just .02 second.
|
| |
|
|
|
|
| |
before each call to read_process_output.
(read_process_output): Handle match data properly in recursive calls.
(exec_sentinel): Likewise.
|
| |
|
|
| |
just before running the sentinel, in case it dies.
|
| | |
|
| |
|
|
| |
(syms_of_process): staticpro deleted.
|
| | |
|
| |
|
|
| |
Don't reestablish handler.
|
| | |
|
| |
|
|
|
|
| |
(Fopen_network_stream): Store a cons cell in childp.
(NETCONN_P): Use GC_CONSP.
(list_processes_1): Use new childp format.
|
| |
|
|
| |
and defined (HAVE_SETSID) instead of DONT_REOPEN_PTY.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Don't reinstall sig handler if POSIX_SIGNALS.
|