Browse Source

XEmacs compatibility checks

XEmacs does not implement make-network-process, so this won't work there yet.
Added a check for the feature, and modified docs to mention this.
Christopher Browne 14 years ago
parent
commit
8ffead403b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      edit-server.el

+ 3 - 0
edit-server.el

@@ -38,6 +38,9 @@
 ;(setq debug-on-error 't)
 ;(setq debug-on-error 't)
 ;(setq edebug-all-defs 't)
 ;(setq edebug-all-defs 't)
 
 
+(if (not (featurep 'make-network-process))
+    (error "Incompatible version of [X]Emacs - lacks make-network-process"))
+
 ;; Customization
 ;; Customization
 (defcustom edit-server-port 9292
 (defcustom edit-server-port 9292
   "Local port the edit server listens to."
   "Local port the edit server listens to."