summaryrefslogtreecommitdiff
path: root/lisp/term
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-10-26 09:56:11 -0700
committerGlenn Morris <rgm@gnu.org>2010-10-26 09:56:11 -0700
commitb94a5a43d1c117473b57db9bd9f6a07162a0351a (patch)
treea921b9e61b7ef069e1269b2c65e64c77fe1485a7 /lisp/term
parentfc3eda047183f796653610f43117098bf0155210 (diff)
* lisp/term/common-win.el (xw-defined-colors): Simplify the 'ns case.
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/common-win.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/term/common-win.el b/lisp/term/common-win.el
index 8e0953688f3..0df5e57ee27 100644
--- a/lisp/term/common-win.el
+++ b/lisp/term/common-win.el
@@ -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