Mercurial > hg > xemacs-beta
comparison src/process.c @ 859:84762348c6f9
[xemacs-hg @ 2002-06-01 08:06:46 by ben]
fix process problems etc.
process.el: Insert before, not after, point.
buffer.c: Fix bug noted by someone.
console-tty.h, device.h, emacs.c, filelock.c, nt.c, process-nt.c, process-unix.c, process.c, redisplay-tty.c, sysdep.c, sysproc.h, win32.c: Redo problem with syssignal.h/sysproc.h dependence noted by Didier
-- rather than require one included before the other
(error-prone), just include syssignal.h from sysproc.h
where it's needed.
inline.c: Include sysfile.h due to inline funs in that header.
extents.c: Fix bug noted by Andrew Cohen <cohen@andy.bu.edu>.
process-unix.c: Fix other bug noted by Andrew Cohen <cohen@andy.bu.edu>.
process.c: Add process-has-separate-stderr-p, used by call-process-internal.
author | ben |
---|---|
date | Sat, 01 Jun 2002 08:06:55 +0000 |
parents | 1d8fb2eee1bb |
children | 278c743f1578 |
comparison
equal
deleted
inserted
replaced
858:2c12fe2da451 | 859:84762348c6f9 |
---|---|
55 #include "procimpl.h" | 55 #include "procimpl.h" |
56 #include "sysdep.h" | 56 #include "sysdep.h" |
57 #include "window.h" | 57 #include "window.h" |
58 | 58 |
59 #include "sysfile.h" | 59 #include "sysfile.h" |
60 #include "syssignal.h" /* Always include before sysproc.h and systty.h | |
61 -- didier */ | |
62 #include "sysproc.h" | 60 #include "sysproc.h" |
61 #include "syssignal.h" | |
63 #include "systime.h" | 62 #include "systime.h" |
64 #include "systty.h" | 63 #include "systty.h" |
65 #include "syswait.h" | 64 #include "syswait.h" |
66 | 65 |
67 Lisp_Object Qprocessp, Qprocess_live_p; | 66 Lisp_Object Qprocessp, Qprocess_live_p; |
1124 process_has_separate_stderr (Lisp_Object process) | 1123 process_has_separate_stderr (Lisp_Object process) |
1125 { | 1124 { |
1126 return XPROCESS (process)->separate_stderr; | 1125 return XPROCESS (process)->separate_stderr; |
1127 } | 1126 } |
1128 | 1127 |
1128 DEFUN ("process-has-separate-stderr-p", Fprocess_has_separate_stderr_p, 1, 1, | |
1129 0, /* | |
1130 Return non-nil if process has stderr separate from stdout. | |
1131 */ | |
1132 (process)) | |
1133 { | |
1134 CHECK_PROCESS (process); | |
1135 return process_has_separate_stderr (process) ? Qt : Qnil; | |
1136 } | |
1137 | |
1129 | 1138 |
1130 /* Sending data to subprocess */ | 1139 /* Sending data to subprocess */ |
1131 | 1140 |
1132 /* send some data to process PROCESS. If NONRELOCATABLE is non-NULL, it | 1141 /* send some data to process PROCESS. If NONRELOCATABLE is non-NULL, it |
1133 specifies the address of the data. Otherwise, the data comes from the | 1142 specifies the address of the data. Otherwise, the data comes from the |
2508 DEFSUBR (Fprocess_exit_status); | 2517 DEFSUBR (Fprocess_exit_status); |
2509 DEFSUBR (Fprocess_id); | 2518 DEFSUBR (Fprocess_id); |
2510 DEFSUBR (Fprocess_name); | 2519 DEFSUBR (Fprocess_name); |
2511 DEFSUBR (Fprocess_tty_name); | 2520 DEFSUBR (Fprocess_tty_name); |
2512 DEFSUBR (Fprocess_command); | 2521 DEFSUBR (Fprocess_command); |
2522 DEFSUBR (Fprocess_has_separate_stderr_p); | |
2513 DEFSUBR (Fset_process_buffer); | 2523 DEFSUBR (Fset_process_buffer); |
2514 DEFSUBR (Fset_process_stderr_buffer); | 2524 DEFSUBR (Fset_process_stderr_buffer); |
2515 DEFSUBR (Fprocess_buffer); | 2525 DEFSUBR (Fprocess_buffer); |
2516 DEFSUBR (Fprocess_mark); | 2526 DEFSUBR (Fprocess_mark); |
2517 DEFSUBR (Fprocess_stderr_buffer); | 2527 DEFSUBR (Fprocess_stderr_buffer); |