From: Chong Yidong Date: Thu, 30 Oct 2008 15:54:38 +0000 (+0000) Subject: (main): If using the current frame, send tty information to Emacs in X-Git-Tag: emacs-pretest-23.0.90~2079 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8536c0f5c5536ed023c61c6f903abbef805f2715;p=emacs.git (main): If using the current frame, send tty information to Emacs in case daemon mode needs to occupy this tty. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 870100ed4af..0bbc385d07f 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -1437,7 +1437,10 @@ main (argc, argv) send_to_emacs (emacs_socket, " "); } - if (tty) + /* If using the current frame, send tty information to Emacs anyway. + In daemon mode, Emacs may need to occupy this tty if no other + frame is available. */ + if (tty || current_frame) { char *type = egetenv ("TERM"); char *tty_name = NULL;