From: Jason Rumney Date: Sat, 2 Jul 2011 15:07:57 +0000 (+0800) Subject: * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~242 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc92abd2821900e25d972503f1a7d95d259d3bfa;p=emacs.git * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on Windows. Fixes: debbugs:5486 --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index b7a95fe8043..098ee06c762 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2011-07-02 Jason Rumney + + * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on + Windows (Bug#5486). + 2011-06-25 Glenn Morris * emacsclient.c (decode_options) : Add `F:'. diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index c78a42bffe8..2af139aee6d 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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 */ }