aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-08-31 20:13:29 +0000
committerRichard M. Stallman1996-08-31 20:13:29 +0000
commit0ecf7d369ae758847c4587ea5990a6cd0512663e (patch)
treefe9c8a5c9f5d439d2f5b31bbc2f802a3a796508d /src
parentcedadcfab0e44e8737fbe1ba84f3ecfc6c2e57d8 (diff)
downloademacs-0ecf7d369ae758847c4587ea5990a6cd0512663e.tar.gz
emacs-0ecf7d369ae758847c4587ea5990a6cd0512663e.zip
(Vwin32_start_process_show_window): New variable.
(create_child): Conditionally force subprocess to hide window. (syms_of_ntproc): DEFVAR it.
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 01ffd33bebb..71aa2b41a31 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -51,6 +51,10 @@ Boston, MA 02111-1307, USA.
51 conditional (off by default). */ 51 conditional (off by default). */
52Lisp_Object Vwin32_quote_process_args; 52Lisp_Object Vwin32_quote_process_args;
53 53
54/* Control whether create_child causes the process' window to be
55 hidden. The default is nil. */
56Lisp_Object Vwin32_start_process_show_window;
57
54/* Time to sleep before reading from a subprocess output pipe - this 58/* Time to sleep before reading from a subprocess output pipe - this
55 avoids the inefficiency of frequently reading small amounts of data. 59 avoids the inefficiency of frequently reading small amounts of data.
56 This is primarily necessary for handling DOS processes on Windows 95, 60 This is primarily necessary for handling DOS processes on Windows 95,
@@ -284,7 +288,10 @@ create_child (char *exe, char *cmdline, char *env,
284 start.cb = sizeof (start); 288 start.cb = sizeof (start);
285 289
286#ifdef HAVE_NTGUI 290#ifdef HAVE_NTGUI
287 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; 291 if (NILP (Vwin32_start_process_show_window))
292 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
293 else
294 start.dwFlags = STARTF_USESTDHANDLES;
288 start.wShowWindow = SW_HIDE; 295 start.wShowWindow = SW_HIDE;
289 296
290 start.hStdInput = GetStdHandle (STD_INPUT_HANDLE); 297 start.hStdInput = GetStdHandle (STD_INPUT_HANDLE);
@@ -1244,6 +1251,12 @@ constructed (or arguments have already been quoted), so enabling this\n\
1244option may cause unexpected behavior."); 1251option may cause unexpected behavior.");
1245 Vwin32_quote_process_args = Qnil; 1252 Vwin32_quote_process_args = Qnil;
1246 1253
1254 DEFVAR_LISP ("win32-start-process-show-window",
1255 &Vwin32_start_process_show_window,
1256 "When nil, processes started via start-process hide their windows.\n\
1257When non-nil, they show their window in the method of their choice.");
1258 Vwin32_start_process_show_window = Qnil;
1259
1247 DEFVAR_INT ("win32-pipe-read-delay", &Vwin32_pipe_read_delay, 1260 DEFVAR_INT ("win32-pipe-read-delay", &Vwin32_pipe_read_delay,
1248 "Forced delay before reading subprocess output.\n\ 1261 "Forced delay before reading subprocess output.\n\
1249This is done to improve the buffering of subprocess output, by\n\ 1262This is done to improve the buffering of subprocess output, by\n\