aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorAndreas Schwab2008-10-31 23:17:13 +0000
committerAndreas Schwab2008-10-31 23:17:13 +0000
commit322ca65006295d1d7d405188fa324f66b4d3ec17 (patch)
treeca028afbbdfab749ffb31313cb76a49b54976ef4 /lib-src/emacsclient.c
parent5c979e0255c08b9b76d96b708c133afcc3f4880c (diff)
downloademacs-322ca65006295d1d7d405188fa324f66b4d3ec17.tar.gz
emacs-322ca65006295d1d7d405188fa324f66b4d3ec17.zip
(main): Don't force sending tty when in eval mode.
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 0bbc385d07f..921fc2054e3 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1440,7 +1440,7 @@ main (argc, argv)
1440 /* If using the current frame, send tty information to Emacs anyway. 1440 /* If using the current frame, send tty information to Emacs anyway.
1441 In daemon mode, Emacs may need to occupy this tty if no other 1441 In daemon mode, Emacs may need to occupy this tty if no other
1442 frame is available. */ 1442 frame is available. */
1443 if (tty || current_frame) 1443 if (tty || (current_frame && !eval))
1444 { 1444 {
1445 char *type = egetenv ("TERM"); 1445 char *type = egetenv ("TERM");
1446 char *tty_name = NULL; 1446 char *tty_name = NULL;