]> git.eshelyaron.com Git - emacs.git/commitdiff
(server-process-filter): Only default to emacsclient's terminal in
authorChong Yidong <cyd@stupidchicken.com>
Wed, 5 Nov 2008 21:16:17 +0000 (21:16 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 5 Nov 2008 21:16:17 +0000 (21:16 +0000)
daemon mode.

lisp/server.el

index 5b3cd9b82a0aacf9f61c22239cacec7c76ee23e3..2df1f9cedb3e4f9fc9853a4bdcf1537d7badc1c5 100644 (file)
@@ -936,10 +936,11 @@ The following commands are accepted by the client:
                         (or (eq use-current-frame 'always)
                             ;; We can't use the Emacs daemon's
                             ;; terminal frame.
-                            (not (and (= (length (frame-list)) 1)
+                            (not (and (daemonp)
+                                      (= (length (frame-list)) 1)
                                       (eq (selected-frame)
                                           terminal-frame)))))
-                   (setq tty-name nil)
+                   (setq tty-name nil tty-type nil)
                    (if display (server-select-display display)))
                   ((eq tty-name 'window-system)
                    (server-create-window-system-frame display nowait proc))