dot/emacs: Always start the servers in Emacs 23.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 15:03:13 +0000 (15:03 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 15:10:53 +0000 (15:10 +0000)
We can always open frames and terminal sessions, so it makes sense to
just have the one Emacs.

dot/emacs

index d79aeeb..845f1ff 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 
 ;; Emacs server behaviour.
 
-(and window-system
-     (trap (gnuserv-start)
-          (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$"))))
+(and (or window-system (>= emacs-major-version 23))
+     (trap (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$"))
+          (start-server)
+          (gnuserv-start)))
 
 ;; Control backup behaviour.