Richard M. Stallman
5651af6d63
(wait_reading_process_input): If a pty gives EIO,
...
raise SIGCHLD just in case.
1998-08-15 05:53:00 +00:00
Richard M. Stallman
4525f571f5
(Fprocess_send_eof): Transfer proc_encode_coding_system
...
data to the new outfd.
1998-08-08 00:49:24 +00:00
Richard M. Stallman
7c5e21ab08
(create_process): For outchannel, set up
...
proc_encode_coding_system, not proc_decode_coding_system.
1998-08-01 19:04:28 +00:00
Richard M. Stallman
929a672696
Whitespace change.
1998-07-29 18:59:34 +00:00
Kenichi Handa
8bc49fd1f3
(read_process_output): Even if we read data without
...
code conversion, calculate character counts. If we insert the
data into a unibyte buffer, treat the data as unibyte.
1998-07-16 00:14:44 +00:00
Kenichi Handa
77c070f379
(init_process): Initilize Vdefault_process_coding_system.
1998-06-26 04:13:40 +00:00
Kenichi Handa
d5d4ae7193
(Fstart_process): Check process-coding-system-alist
...
and default-process-coding-system even in unibyte mode.
(create_process): In unibyte mode, suppress character code
conversion.
1998-06-26 03:29:15 +00:00
Kenichi Handa
55fd504836
(read_process_output): While processing carryover,
...
check the size of p->decoding_buf.
1998-06-22 00:24:57 +00:00
Eli Zaretskii
52fd88d3c4
(wait_reading_process_input): Recompute timeout each
...
time through the loop. Check requeued_events_pending_p and exit
the loop if there is unread keyboard input.
1998-06-21 14:52:08 +00:00
Kenichi Handa
ca65341ea8
(read_process_output): Handle carryover correctly.
1998-06-20 03:01:00 +00:00
Richard M. Stallman
6791894163
(Fstart_process): Remove the special case for
...
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.
1998-05-10 19:21:05 +00:00
Eli Zaretskii
02b9b4fd8a
(init_process, syms_of_process): Make definition consistent with
...
prototypes on lisp.h
1998-05-07 07:46:41 +00:00
Richard M. Stallman
833d591d60
(create_process): Add cast when calling encode_coding
...
and another when storing buf into new_argv.
1998-05-05 19:33:16 +00:00
Richard M. Stallman
aa91317aed
(Fset_process_inherit_coding_system_flag, Fstart_process):
...
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.
1998-04-29 21:46:43 +00:00
Andreas Schwab
3a80c0aa96
(Fset_process_inherit_coding_system_flag): Fix test for non-nil FLAG.
1998-04-28 09:27:02 +00:00
Eli Zaretskii
52a1b89480
(Fset_process_inherit_coding_system_flag,
...
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.
1998-04-19 14:13:47 +00:00
Andreas Schwab
e6d6dff2d0
(read_process_output): Fix mixing of Lisp_Object and
...
int.
1998-04-14 13:05:38 +00:00
Andreas Schwab
dfcf069d56
Fix -Wimplicit warnings.
1998-04-14 12:25:56 +00:00
Karl Heuer
d9bb0c3292
(kill_buffer_processes): Make consistent with
...
prototype on lisp.h.
1998-04-08 06:49:17 +00:00
Kenichi Handa
0d023da168
(read_process_output): Count multibyte characters. If
...
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.
1998-03-25 10:45:59 +00:00
Richard M. Stallman
e6e5ac6800
(read_process_output): Use make_string_from_bytes.
1998-03-21 17:50:30 +00:00
Richard M. Stallman
fc932ac6c7
Use STRING_BYTES and SET_STRING_BYTES.
1998-03-21 07:06:14 +00:00
Richard M. Stallman
8f1ecd05a8
(exec_sentinel, read_process_output): Fstore_match_data => Fset_match_data.
...
(Fstart_process): Doc fix.
1998-03-14 08:23:21 +00:00
Kenichi Handa
14dc609387
(Vdefault_file_name_coding_system): Extern it.
...
(create_process): Use ENCODE_FILE.
1998-03-03 07:18:46 +00:00
Kenichi Handa
e7fbaa6567
(Fstart_process): Use raw-text instead of emacs-mule
...
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.
1998-01-22 01:26:45 +00:00
Richard M. Stallman
4a2f9c6aef
Update copyright year.
1998-01-21 23:32:12 +00:00
Richard M. Stallman
1d2fc6120d
(read_process_output): Use insert_1_both.
...
(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.
1998-01-05 17:33:41 +00:00
Richard M. Stallman
d8a2934ed2
(status_notify): Use byte and char pointers.
...
(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.
1998-01-01 06:45:08 +00:00
Kenichi Handa
486b111b20
(read_process_output): Fix previous change, i.e, if
...
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.
1997-12-09 04:12:03 +00:00
Karl Heuer
ea4496e6c5
(read_process_output): Allocate for coding system, if
...
not already done.
1997-12-08 01:35:12 +00:00
Andreas Schwab
6b53bb8563
(create_process, deactivate_process, close_process_descs):
...
(kill_buffer_processes, status_notify): Return void.
(Fstart_process): Cast arg to create_process.
1997-11-28 14:53:09 +00:00
Kenichi Handa
1a283a4c9e
(create_process): Encode arguments for the process.
...
(read_process_output): Use new macros defined in coding.h.
(send_process): Likewise.
1997-11-08 03:05:44 +00:00
Richard M. Stallman
a932f187fb
(create_process): Encode the new current dir.
1997-09-09 05:30:58 +00:00
Kenichi Handa
e9c509cd76
(read_process_output): Index for
...
proc_encode_coding_system should be p->outfd (not `channel' which
is p->infd).
1997-09-01 07:15:46 +00:00
Kenichi Handa
a95c35f6a2
(Fset_process_coding_system): Doc-string modified.
...
(Fprocess_coding_system): Likewise.
1997-08-04 06:59:57 +00:00
Richard M. Stallman
77e1b3d494
(read_process_output): Don't call setup_coding_system
...
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.
1997-07-31 06:08:07 +00:00
Kenichi Handa
71a4b3e854
(read_process_output): Use new macro
...
CODING_REQUIRE_NO_CONVERSION
(send_process): Use new macro CODING_MAY_REQUIRE_NO_CONVERSION.
1997-07-25 07:46:51 +00:00
Richard M. Stallman
215b45e94a
(wait_reading_process_input): Initialize total_read.
...
Check for read_process_output giving back EIO.
1997-07-24 16:58:05 +00:00
Richard M. Stallman
4da6dec802
(Fprocess_send_region): Convert move_gap argument to int.
1997-07-12 06:38:44 +00:00
Richard M. Stallman
d72236841c
(read_process_output): Add cast.
1997-07-10 03:09:10 +00:00
Kenichi Handa
11f84d7d6d
(Fstart_process): If enable-multibyte-characters is
...
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.
1997-07-07 00:59:44 +00:00
Richard M. Stallman
b684d043b2
(send_process): Make buf and temp_buf `unsigned char *'.
1997-07-04 02:01:31 +00:00
Kenichi Handa
715f75777f
(Fstart_process): Call Ffind_operation_coding_system.
...
(Fopen_network_stream): Likewise.
1997-07-02 12:54:06 +00:00
Richard M. Stallman
1bac7c84d4
(READ_CHILD_OUTPUT): Macro deleted.
...
(read_process_output): Use read instead of READ_CHILD_OUTPUT.
1997-07-01 06:28:48 +00:00
Richard M. Stallman
0c9960e9f5
(wait_reading_process_input): If wait_for_cell,
...
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.
1997-06-29 00:34:36 +00:00
Richard M. Stallman
5d5beb624a
(wait_reading_process_input): Don't check for
...
keyboard input if wait_for_cell.
1997-06-22 09:06:04 +00:00
Richard M. Stallman
93853f3d0c
(Fprocess_send_eof): Prooperly conditionalize prev. change.
1997-06-19 08:13:44 +00:00
Richard M. Stallman
02f55c4bd4
(Fprocess_send_eof): Use shutdown, if it's a socket.
...
Don't close the output descriptor if that is also the input descriptor.
1997-06-19 03:03:08 +00:00
Richard M. Stallman
97a084c17a
Further fix previous change.
1997-06-18 06:42:38 +00:00
Richard M. Stallman
1c0707fd10
(wait_reading_process_input): Fix previous change.
1997-06-17 04:15:18 +00:00