Fix emacsclient bug where "-n -c" does not open a new frame on Windows.
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Dec 2011 17:13:01 +0000 (18:13 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Dec 2011 17:13:01 +0000 (18:13 +0100)
commit520fca41d6ca6cc860c1f03c76cd472ea149e33a
treeae940593c2033d55da3e51b113a12bca88a9e816
parentec7ae0329e5cfda066433f8c5d5daa6e0d1dde14
Fix emacsclient bug where "-n -c" does not open a new frame on Windows.

* lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0;
instead, treat both -c and -t as always requesting a new "tty" frame,
and let server.el decide which kind is actually required.
Reported by Uwe Siart <usenet@siart.de> in this thread:
http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html

* lisp/server.el (server-delete-client): On Windows, do not try to delete
the only terminal.
(server-process-filter): On Windows, treat requests for a tty frame as
if they were for a GUI frame if the running server is in GUI mode.
lib-src/ChangeLog
lib-src/emacsclient.c
lisp/ChangeLog
lisp/server.el