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
Richard M. Stallman
7ce63188c9
(wait_reading_process_input): When exiting because
...
the process WAIT_PROC has terminated, first read all its output.
1997-06-16 06:24:22 +00:00
Richard M. Stallman
69645afc53
(wait_reading_process_input): Return if unread events appear.
1997-06-13 00:45:19 +00:00
Kenichi Handa
83502605be
(Fstart_process):Pay attention to
...
Vdefault_process_coding_system.
(Fopen_network_stream): Likewise.
1997-06-09 12:59:28 +00:00
Richard M. Stallman
12ca5cdf3e
(read_process_output): Update opoint, old_begv and old_zv
...
based on actual buffer change rather than size of string.
old_begv and old_zv are now ints.
(status_notify): Likewise for opoint.
1997-04-30 18:34:17 +00:00
Richard M. Stallman
59f23005cf
(Fopen_network_stream): Use same socket for in and out.
1997-03-25 03:52:53 +00:00
Richard M. Stallman
b5dc1c835a
(wait_reading_process_input): If wait_for_cell,
...
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.
1997-03-22 04:13:50 +00:00
Kenichi Handa
c758053843
(Fstart_process, Fopen_network_stream): Do not perform
...
character code conversion if enable-multibyte-characters is nil.
1997-02-27 07:48:21 +00:00
Karl Heuer
0fa1789e78
Include charset.h and coding.h.
...
(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.
1997-02-20 06:53:55 +00:00
Richard M. Stallman
ececcbec2a
Include blockinput.h.
...
(create_process): Block input around the fork.
1996-12-30 01:26:08 +00:00
Richard M. Stallman
dd13022778
(read_process_output, exec_sentinel):
...
Call Fmatch_data with new explicit arguments.
1996-12-19 06:41:48 +00:00
Richard M. Stallman
f3e6605c82
(send_process) [EMACS_HAS_USECS]:
...
When we wait for the buffer to clear, wait just .02 second.
1996-12-18 16:37:52 +00:00
Richard M. Stallman
4da2f5be4a
(status_notify): Test p->infd > 0
...
before each call to read_process_output.
(read_process_output): Handle match data properly in recursive calls.
(exec_sentinel): Likewise.
1996-12-08 21:36:42 +00:00
Richard M. Stallman
0ad61fe7d7
(status_notify): Update p->tick again
...
just before running the sentinel, in case it dies.
1996-10-26 16:01:03 +00:00
Karl Heuer
6df54671fd
Replaced symbol BSD with BSD_SYSTEM.
1996-09-17 03:43:54 +00:00
Richard M. Stallman
743c658604
(stream_process): Variable deleted.
...
(syms_of_process): staticpro deleted.
1996-09-16 05:09:06 +00:00
Richard M. Stallman
99c1aeca5e
(create_process): Test HAVE_SETPGID for using setpgid.
1996-09-04 16:27:55 +00:00
Richard M. Stallman
3c0ee47b71
(create_process_1, sigchld_handler) [POSIX_SIGNALS]:
...
Don't reestablish handler.
1996-09-04 15:07:07 +00:00
Richard M. Stallman
99153b9e0e
(create_process): Undo previous change.
1996-09-03 04:13:20 +00:00
Richard M. Stallman
de282a0553
(Fprocess_contact): New function.
...
(Fopen_network_stream): Store a cons cell in childp.
(NETCONN_P): Use GC_CONSP.
(list_processes_1): Use new childp format.
1996-09-01 23:18:03 +00:00