+2007-10-17 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * server.el (server-process-filter): Only set display if X11 is
+ supported.
+
2007-10-17 Glenn Morris <rgm@gnu.org>
* progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Tweak
;; Open X frames on the given display instead of the default.
((and (equal "-display" arg)
(string-match "\\([^ ]*\\) " request))
- (setq display (match-string 1 request)
- request (substring request (match-end 0))))
+ ;; Only set `display' if X is supported.
+ ;; Emacsclient cannot know if emacs supports X and
+ ;; it will send -display anyway.
+ (when (memq 'x frame-creation-function-alist)
+ (setq display (match-string 1 request)))
+ (setq request (substring request (match-end 0))))
;; -window-system: Open a new X frame.
((equal "-window-system" arg)