Function: face-all-attributes

face-all-attributes is a byte-compiled function defined in faces.el.gz.

Signature

(face-all-attributes FACE &optional FRAME INHERIT)

Documentation

Return an alist stating the attributes of FACE.

Each element of the result has the form (ATTR-NAME . ATTR-VALUE). If FRAME is omitted or nil the value describes the default attributes, but if you specify FRAME, the value describes the attributes of FACE on FRAME. INHERIT has the same meaning as in face-attribute, which see.

View in manual

Probably introduced at or before Emacs version 23.1.

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun face-all-attributes (face &optional frame inherit)
  "Return an alist stating the attributes of FACE.
Each element of the result has the form (ATTR-NAME . ATTR-VALUE).
If FRAME is omitted or nil the value describes the default attributes,
but if you specify FRAME, the value describes the attributes of FACE
on FRAME.
INHERIT has the same meaning as in `face-attribute', which see."
  (mapcar (lambda (pair)
	    (let ((attr (car pair)))
	      (cons attr (face-attribute face attr (or frame t) inherit))))
          face-attribute-name-alist))