aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/server.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/server.el b/lisp/server.el
index fcfc6c01972..f5dea9c590f 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -706,6 +706,7 @@ the `server-process' variable."
706 ;; when we can't get user input, which may happen when 706 ;; when we can't get user input, which may happen when
707 ;; doing emacsclient --eval "(kill-emacs)" in daemon mode. 707 ;; doing emacsclient --eval "(kill-emacs)" in daemon mode.
708 (cond 708 (cond
709 ;; Use `frame-initial-p'?
709 ((and (daemonp) 710 ((and (daemonp)
710 (null (cdr (frame-list))) 711 (null (cdr (frame-list)))
711 (eq (selected-frame) terminal-frame)) 712 (eq (selected-frame) terminal-frame))
@@ -1429,6 +1430,7 @@ The following commands are accepted by the client:
1429 (or (eq use-current-frame 'always) 1430 (or (eq use-current-frame 'always)
1430 ;; We can't use the Emacs daemon's 1431 ;; We can't use the Emacs daemon's
1431 ;; terminal frame. 1432 ;; terminal frame.
1433 ;; Use `frame-initial-p'?
1432 (not (and (daemonp) 1434 (not (and (daemonp)
1433 (null (cdr (frame-list))) 1435 (null (cdr (frame-list)))
1434 (eq (selected-frame) 1436 (eq (selected-frame)
@@ -1453,6 +1455,7 @@ The following commands are accepted by the client:
1453 ;; If there won't be a current frame to use, fall 1455 ;; If there won't be a current frame to use, fall
1454 ;; back to trying to create a new one. 1456 ;; back to trying to create a new one.
1455 ((and use-current-frame 1457 ((and use-current-frame
1458 ;; Use `frame-initial-p'?
1456 (daemonp) 1459 (daemonp)
1457 (null (cdr (frame-list))) 1460 (null (cdr (frame-list)))
1458 (eq (selected-frame) terminal-frame) 1461 (eq (selected-frame) terminal-frame)