* lisp/startup.el (command-line): Don't init the tty in daemon mode.
authorGlenn Morris <rgm@gnu.org>
Wed, 26 Feb 2014 19:45:18 +0000 (14:45 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 26 Feb 2014 19:45:18 +0000 (14:45 -0500)
Ref: http://debbugs.gnu.org/16859#15

lisp/ChangeLog
lisp/startup.el

index 510784e..cee4d32 100644 (file)
@@ -1,5 +1,7 @@
 2014-02-26  Glenn Morris  <rgm@gnu.org>
 
+       * startup.el (command-line): Don't init the tty in daemon mode.
+
        Avoid calling tty-setup-hook twice, eg if a term file
        explicitly calls tty-run-terminal-initialization.  (Bug#16859)
        * faces.el (tty-run-terminal-initialization): Add run-hook argument.
index 531cba2..d6d0ff9 100644 (file)
@@ -1285,7 +1285,8 @@ the `--debug-init' option to view a complete error backtrace."
   ;; Load library for our terminal type.
   ;; User init file can set term-file-prefix to nil to prevent this.
   (unless (or noninteractive
-              initial-window-system)
+              initial-window-system
+              (daemonp))
     (tty-run-terminal-initialization (selected-frame) nil t))
 
   ;; Update the out-of-memory error message based on user's key bindings