* server.el (server-create-window-system-frame): Improved comment.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 9 Nov 2012 06:28:27 +0000 (07:28 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 9 Nov 2012 06:28:27 +0000 (07:28 +0100)
lisp/ChangeLog
lisp/server.el

index bbc36cd..c5dd2ec 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-09  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * server.el (server-create-window-system-frame): Improved comment.
+
 2012-11-08  Jan Djärv  <jan.h.d@swipnet.se>
 
        * server.el (server-create-window-system-frame): Handle Nextstep
index ab0dc95..c78e3e3 100644 (file)
@@ -842,7 +842,12 @@ This handles splitting the command if it would be bigger than
     (unless (assq w window-system-initialization-alist)
       (setq w nil))
 
-    ;; Special case for ns.
+    ;; Special case for ns.  This is because DISPLAY may not be set at all
+    ;; which in the ns case isn't an error.  The variable display then becomes
+    ;; the fully qualified hostname, which make-frame-on-display below
+    ;; does not understand and throws an error.
+    ;; It may also be a valid X display, but if Emacs is compiled for ns, it
+    ;; can not make X frames.
     (if (featurep 'ns-win)
        (setq w 'ns display "ns"))