(main): Don't force sending tty when in eval mode.
authorAndreas Schwab <schwab@suse.de>
Fri, 31 Oct 2008 23:17:13 +0000 (23:17 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 31 Oct 2008 23:17:13 +0000 (23:17 +0000)
lib-src/ChangeLog
lib-src/emacsclient.c

index 41c93d0..228a579 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-31  Andreas Schwab  <schwab@suse.de>
+
+       * emacsclient.c (main): Don't force sending tty when in eval mode.
+
 2008-10-30  Chong Yidong  <cyd@stupidchicken.com>
 
        * emacsclient.c (main): If using the current frame, send tty
index 0bbc385..921fc20 100644 (file)
@@ -1440,7 +1440,7 @@ main (argc, argv)
   /* 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)
+  if (tty || (current_frame && !eval))
     {
       char *type = egetenv ("TERM");
       char *tty_name = NULL;