aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2008-10-31 23:17:13 +0000
committerAndreas Schwab2008-10-31 23:17:13 +0000
commit322ca65006295d1d7d405188fa324f66b4d3ec17 (patch)
treeca028afbbdfab749ffb31313cb76a49b54976ef4
parent5c979e0255c08b9b76d96b708c133afcc3f4880c (diff)
downloademacs-322ca65006295d1d7d405188fa324f66b4d3ec17.tar.gz
emacs-322ca65006295d1d7d405188fa324f66b4d3ec17.zip
(main): Don't force sending tty when in eval mode.
-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 41c93d0ae67..228a579c651 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
12008-10-31 Andreas Schwab <schwab@suse.de>
2
3 * emacsclient.c (main): Don't force sending tty when in eval mode.
4
12008-10-30 Chong Yidong <cyd@stupidchicken.com> 52008-10-30 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * emacsclient.c (main): If using the current frame, send tty 7 * emacsclient.c (main): If using the current frame, send tty
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;