comparison src/process-nt.c @ 546:666d73d6ac56

[xemacs-hg @ 2001-05-20 01:17:07 by ben] fixes so MinGW compiles. console-msw.h, scrollbar-msw.c, event-msw.c: we might receive scrollbar events on windows without scrollbars (e.g. holding down and moving the wheel button). dired.c: win9x support. eval.c: doc comment about gcpro'ing in record_unwind_protect. frame-msw.c: typo. frame.c: avoid problems with errors during init_frame_3. process-nt.c: remove unused mswindows-quote-process-args. rec for 21.4. unexcw.c: use do/while. autoload.el: Oops, off by one argument. mouse.el: Add an argument to mouse-track so that hooks can be overridden. (let-binding doesn't work when the hooks have been made local.) modify mouse-track-run-hook accordingly, and fix mouse-track-default and mouse-track-insert to use the new functionality. printer.el: Oops, off by one paren.
author ben
date Sun, 20 May 2001 01:17:16 +0000
parents 0784d089fdc9
children ed498ef2108b
comparison
equal deleted inserted replaced
545:9a775fb11bb7 546:666d73d6ac56
53 { 53 {
54 HANDLE h_process; 54 HANDLE h_process;
55 DWORD dwProcessId; 55 DWORD dwProcessId;
56 HWND hwnd; /* console window */ 56 HWND hwnd; /* console window */
57 }; 57 };
58
59 /* Control how args are quoted to ensure correct parsing by child
60 process. */
61 Lisp_Object Vmswindows_quote_process_args;
62 58
63 /* Control whether create_child causes the process to inherit Emacs' 59 /* Control whether create_child causes the process to inherit Emacs'
64 console window, or be given a new one of its own. The default is 60 console window, or be given a new one of its own. The default is
65 nil, to allow multiple DOS programs to run on Win95. Having separate 61 nil, to allow multiple DOS programs to run on Win95. Having separate
66 consoles also allows Emacs to cleanly terminate process groups. */ 62 consoles also allows Emacs to cleanly terminate process groups. */
1381 } 1377 }
1382 1378
1383 void 1379 void
1384 vars_of_process_nt (void) 1380 vars_of_process_nt (void)
1385 { 1381 {
1386 DEFVAR_LISP ("mswindows-quote-process-args",
1387 &Vmswindows_quote_process_args /*
1388 Non-nil enables quoting of process arguments to ensure correct parsing.
1389 Because Windows does not directly pass argv arrays to child processes,
1390 programs have to reconstruct the argv array by parsing the command
1391 line string. For an argument to contain a space, it must be enclosed
1392 in double quotes or it will be parsed as multiple arguments.
1393
1394 If the value is a character, that character will be used to escape any
1395 quote characters that appear, otherwise a suitable escape character
1396 will be chosen based on the type of the program (normal or Cygwin).
1397 */ );
1398 Vmswindows_quote_process_args = Qt;
1399
1400 DEFVAR_LISP ("mswindows-start-process-share-console", 1382 DEFVAR_LISP ("mswindows-start-process-share-console",
1401 &Vmswindows_start_process_share_console /* 1383 &Vmswindows_start_process_share_console /*
1402 When nil, new child processes are given a new console. 1384 When nil, new child processes are given a new console.
1403 When non-nil, they share the Emacs console; this has the limitation of 1385 When non-nil, they share the Emacs console; this has the limitation of
1404 allowing only only DOS subprocess to run at a time (whether started directly 1386 allowing only only DOS subprocess to run at a time (whether started directly