aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/emacsclient.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 41c93d0ae6..228a579c65 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-31 Andreas Schwab <[email protected]>
+
+ * emacsclient.c (main): Don't force sending tty when in eval mode.
+
2008-10-30 Chong Yidong <[email protected]>
* emacsclient.c (main): If using the current frame, send tty
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 0bbc385d07..921fc2054e 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -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;