diff options
| author | Juanma Barranquero | 2006-12-15 17:50:28 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-12-15 17:50:28 +0000 |
| commit | 0d3d6719262ec9a6b9f04d0dd399427d2ace40ec (patch) | |
| tree | aea5499da0993e718763e7b26326d7c3de27d990 /lib-src | |
| parent | 75036d1c402448af9500c44f3d3d0ea73cf70a95 (diff) | |
| download | emacs-0d3d6719262ec9a6b9f04d0dd399427d2ace40ec.tar.gz emacs-0d3d6719262ec9a6b9f04d0dd399427d2ace40ec.zip | |
Rework a few comments.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 429d4b5bdc4..b344e676b22 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -152,9 +152,6 @@ struct option longopts[] = | |||
| 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 | { |
| @@ -162,6 +159,8 @@ w32_window_app() | |||
| 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; |
| @@ -316,6 +315,7 @@ w32_execvp (path, 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++) |