comparison lib-src/emacsclient.c @ 74644:4142abafc7b4

Rework a few comments.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 15 Dec 2006 17:50:28 +0000
parents fe8bd1af34c4
children aa3039743d63
comparison
equal deleted inserted replaced
74643:371b10f69bf4 74644:4142abafc7b4
150 }; 150 };
151 151
152 /* Message functions. */ 152 /* Message functions. */
153 153
154 #ifdef WINDOWSNT 154 #ifdef WINDOWSNT
155 /* I first tried to check for STDOUT. The check did not work,
156 I get a valid handle also in nonconsole apps.
157 Instead I test for console title, which seems to work. */
158 int 155 int
159 w32_window_app() 156 w32_window_app()
160 { 157 {
161 static int window_app = -1; 158 static int window_app = -1;
162 char szTitle[MAX_PATH]; 159 char szTitle[MAX_PATH];
163 160
164 if (window_app < 0) 161 if (window_app < 0)
162 /* Checking for STDOUT does not work; it's a valid handle also in
163 nonconsole apps. Testing for the console title seems to work. */
165 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); 164 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0);
166 165
167 return window_app; 166 return window_app;
168 } 167 }
169 #endif 168 #endif
314 char *path; 313 char *path;
315 char **argv; 314 char **argv;
316 { 315 {
317 int i; 316 int i;
318 317
318 /* Required to allow a .BAT script as alternate editor. */
319 argv[0] = (char *) alternate_editor; 319 argv[0] = (char *) alternate_editor;
320 320
321 for (i = 0; argv[i]; i++) 321 for (i = 0; argv[i]; i++)
322 if (strchr (argv[i], ' ')) 322 if (strchr (argv[i], ' '))
323 { 323 {