* lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on
authorJason Rumney <jasonr@gnu.org>
Sat, 2 Jul 2011 15:07:57 +0000 (23:07 +0800)
committerJason Rumney <jasonr@gnu.org>
Sat, 2 Jul 2011 15:07:57 +0000 (23:07 +0800)
Windows.

Fixes: debbugs:5486

lib-src/ChangeLog
lib-src/emacsclient.c

index b7a95fe..098ee06 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-02  Jason Rumney  <jasonr@gnu.org>
+
+       * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on
+       Windows (Bug#5486).
+
 2011-06-25  Glenn Morris  <rgm@gnu.org>
 
        * emacsclient.c (decode_options) <opt>: Add `F:'.
index c78a42b..2af139a 100644 (file)
@@ -652,6 +652,14 @@ decode_options (int argc, char **argv)
 an empty string");
       exit (EXIT_FAILURE);
     }
+
+  /* TTY frames not supported on Windows.  Continue using GUI rather than
+     forcing the user to change their command-line.  This is required since
+     tty is set above if certain options are given and $DISPLAY is not set,
+     which is not obvious to users.  */
+  if (tty)
+      tty = 0;
+
 #endif /* WINDOWSNT */
 }