summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2006-12-15 17:50:28 +0000
committerJuanma Barranquero <lekktu@gmail.com>2006-12-15 17:50:28 +0000
commit0d3d6719262ec9a6b9f04d0dd399427d2ace40ec (patch)
treeaea5499da0993e718763e7b26326d7c3de27d990 /lib-src
parent75036d1c402448af9500c44f3d3d0ea73cf70a95 (diff)
downloademacs-0d3d6719262ec9a6b9f04d0dd399427d2ace40ec.tar.gz
Rework a few comments.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c6
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[] =
/* 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 @@ w32_window_app()
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 @@ w32_execvp (path, argv)
{
int i;
+ /* Required to allow a .BAT script as alternate editor. */
argv[0] = (char *) alternate_editor;
for (i = 0; argv[i]; i++)