| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
check the size of p->decoding_buf.
|
| |
|
|
|
| |
time through the loop. Check requeued_events_pending_p and exit
the loop if there is unread keyboard input.
|
| | |
|
| |
|
|
|
|
|
| |
unibyte, for initializing the process coding systems.
Instead, use the normal multibyte code, but check
BUFFER's value and the default value of enable-multibyte-characters.
(Fopen_network_stream): Likewise.
|
| |
|
|
| |
prototypes on lisp.h
|
| |
|
|
| |
and another when storing buf into new_argv.
|
| |
|
|
|
|
|
| |
Store inherit_coding_system_flag as a Lisp_Object.
(Fopen_network_stream): Likewise.
(Fprocess_inherit_coding_system_flag): Access it as Lisp_Object.
(read_process_output): Likewise.
|
| | |
|
| |
|
|
|
|
|
|
| |
Fprocess_inherit_coding_system_flag): New functions.
(syms_of_process): Defsubr them.
(Fstart_process, Fopen_network_stream): Initialize inherit_coding_system_flag.
(read_process_output): If the process buffer isn't dead, call
after-insert-file-set-buffer-file-coding-system.
|
| |
|
|
| |
int.
|
| | |
|
| |
|
|
| |
prototype on lisp.h.
|
| |
|
|
|
|
| |
received data is stored in p->decoding_buf, copy it to a temporary
buffer and call insert_before_makers instead of
insert_from_string_before_markers.
|
| | |
|
| | |
|
| |
|
|
| |
(Fstart_process): Doc fix.
|
| |
|
|
| |
(create_process): Use ENCODE_FILE.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|