aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorChong Yidong2012-04-20 18:37:57 +0800
committerChong Yidong2012-04-20 18:37:57 +0800
commit2d0e8e614a6744a6a33c6b519f20359802e75c2b (patch)
tree1dfade2f2a21b73ee7f195c6e7e1e2f0a4c43543 /lib-src
parentde6ff46dce80a715d46c34ff46f01a28afb63db9 (diff)
downloademacs-2d0e8e614a6744a6a33c6b519f20359802e75c2b.tar.gz
emacs-2d0e8e614a6744a6a33c6b519f20359802e75c2b.zip
Fix emacsclient/server behavior under --without-x.
* lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314). * lisp/server.el (server-process-filter): Only try to open a window system frame if compiled with graphical support (Bug#8314). Fixes: debbugs:11102
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog1
-rw-r--r--lib-src/emacsclient.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index c76303d8fa2..fc6d905cfb2 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -2,6 +2,7 @@
2 2
3 * emacsclient.c (decode_options): Move -t -n corner case handling 3 * emacsclient.c (decode_options): Move -t -n corner case handling
4 into server.el (Bug#11102). 4 into server.el (Bug#11102).
5 (main): Send -tty to Emacs under more circumstanced (Bug#8314).
5 6
62012-04-18 Paul Eggert <eggert@cs.ucla.edu> 72012-04-18 Paul Eggert <eggert@cs.ucla.edu>
7 8
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 48b4384d487..ea55398306b 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1658,10 +1658,10 @@ main (int argc, char **argv)
1658 send_to_emacs (emacs_socket, " "); 1658 send_to_emacs (emacs_socket, " ");
1659 } 1659 }
1660 1660
1661 /* If using the current frame, send tty information to Emacs anyway. 1661 /* Unless we are certain we don't want to occupy the tty, send our
1662 In daemon mode, Emacs may need to occupy this tty if no other 1662 tty information to Emacs. For example, in daemon mode Emacs may
1663 frame is available. */ 1663 need to occupy this tty if no other frame is available. */
1664 if (tty || (current_frame && !eval)) 1664 if (!current_frame || !eval)
1665 { 1665 {
1666 const char *tty_type, *tty_name; 1666 const char *tty_type, *tty_name;
1667 1667