* lisp/term/common-win.el (xw-defined-colors): Simplify the 'ns case.
authorGlenn Morris <rgm@gnu.org>
Tue, 26 Oct 2010 16:56:11 +0000 (09:56 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 26 Oct 2010 16:56:11 +0000 (09:56 -0700)
lisp/ChangeLog
lisp/term/common-win.el

index 21f1dd1..4c9da08 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-26  Glenn Morris  <rgm@gnu.org>
+
+       * term/common-win.el (xw-defined-colors): Simplify the 'ns case.
+
 2010-10-26  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
        * term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to
index 8e09536..0df5e57 100644 (file)
@@ -463,15 +463,15 @@ the operating system.")
 
 (defun xw-defined-colors (&optional frame)
   "Internal function called by `defined-colors', which see."
-  (or frame (setq frame (selected-frame)))
-  ;; FIXME for ns, this is just... x-colors.
-  (let (defined-colors)
-    (dolist (this-color (if (eq system-type 'windows-nt)
-                           (or (mapcar 'car w32-color-map) x-colors)
-                         x-colors))
-      (and (or (color-supported-p this-color frame t)
-              (featurep 'ns))
-          (setq defined-colors (cons this-color defined-colors))))
-    defined-colors))
+  (if (featurep 'ns)
+      x-colors
+    (or frame (setq frame (selected-frame)))
+    (let (defined-colors)
+      (dolist (this-color (if (eq system-type 'windows-nt)
+                             (or (mapcar 'car w32-color-map) x-colors)
+                           x-colors))
+       (and (color-supported-p this-color frame t)
+            (setq defined-colors (cons this-color defined-colors))))
+      defined-colors)))
 
 ;;; common-win.el ends here