| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
string given to a process filter by a coding system used for
decoding the process output.
|
| |
|
|
|
|
|
| |
CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
and try decoding again.
(Fprocess_send_eof): If the coding system of PROCESS
requires flushing, call send_process with null-string at first.
|
| | |
|
| | |
|
| |
|
|
| |
Restore waiting_for_user_input_p after running Lisp code.
|
| | |
|
| |
|
|
| |
raise SIGCHLD just in case.
|
| |
|
|
| |
data to the new outfd.
|
| |
|
|
| |
proc_encode_coding_system, not proc_decode_coding_system.
|
| | |
|
| |
|
|
|
| |
code conversion, calculate character counts. If we insert the
data into a unibyte buffer, treat the data as unibyte.
|
| | |
|
| |
|
|
|
|
| |
and default-process-coding-system even in unibyte mode.
(create_process): In unibyte mode, suppress character code
conversion.
|
| |
|
|
| |
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.
|