Ref: http://debbugs.gnu.org/16859#15
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.
;; 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