# HG changeset patch # User Juanma Barranquero # Date 1166205028 0 # Node ID 4142abafc7b4f9758472ec7bf7f49c8ae13ed7ef # Parent 371b10f69bf4e09fdcde7863188b0dff5f1e11c9 Rework a few comments. diff -r 371b10f69bf4 -r 4142abafc7b4 lib-src/emacsclient.c --- a/lib-src/emacsclient.c Fri Dec 15 16:36:31 2006 +0000 +++ b/lib-src/emacsclient.c Fri Dec 15 17:50:28 2006 +0000 @@ -152,9 +152,6 @@ /* Message functions. */ #ifdef WINDOWSNT -/* I first tried to check for STDOUT. The check did not work, - I get a valid handle also in nonconsole apps. - Instead I test for console title, which seems to work. */ int w32_window_app() { @@ -162,6 +159,8 @@ char szTitle[MAX_PATH]; if (window_app < 0) + /* Checking for STDOUT does not work; it's a valid handle also in + nonconsole apps. Testing for the console title seems to work. */ window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); return window_app; @@ -316,6 +315,7 @@ { int i; + /* Required to allow a .BAT script as alternate editor. */ argv[0] = (char *) alternate_editor; for (i = 0; argv[i]; i++)