Function: xw-defined-colors

xw-defined-colors is a byte-compiled function defined in common-win.el.gz.

Signature

(xw-defined-colors &optional FRAME)

Documentation

Internal function called by defined-colors, which see.

Source Code

;; Defined in /usr/src/emacs/lisp/term/common-win.el.gz
(defun xw-defined-colors (&optional frame)
  "Internal function called by `defined-colors', which see."
  (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)))