Skip to content
Browse files

Only use server-running-p if it is available

  • Loading branch information...
1 parent 63a065b commit 8a7d157a7a27142fb1da42ea690920a200ea1809 @candera committed Feb 22, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 init.el
View
4 init.el
@@ -18,7 +18,9 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'server)
(unless (or (eq system-type 'windows-nt)
- (server-running-p))
+ (if (fboundp 'server-running-p)
+ (server-running-p)
+ server-process))
(server-start))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

0 comments on commit 8a7d157

Please sign in to comment.
Something went wrong with that request. Please try again.