Function: face-spec-set-2

face-spec-set-2 is a byte-compiled function defined in faces.el.gz.

Signature

(face-spec-set-2 FACE FRAME FACE-ATTRS)

Documentation

Set the face attributes of FACE on FRAME according to FACE-ATTRS.

FACE-ATTRS is a plist of face attributes in the form of attribute-value pairs.

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun face-spec-set-2 (face frame face-attrs)
  "Set the face attributes of FACE on FRAME according to FACE-ATTRS.
FACE-ATTRS is a plist of face attributes in the form of attribute-value
pairs."
  (let (attrs)
    (while face-attrs
      (when (assq (car face-attrs) face-x-resources)
	(push (car face-attrs) attrs)
	(push (cadr face-attrs) attrs))
      (setq face-attrs (cddr face-attrs)))
    (apply 'set-face-attribute face frame (nreverse attrs))))