Function: frame-face-alist

frame-face-alist is a byte-compiled function defined in faces.el.gz.

This function is obsolete since 28.1; use frame--face-hash-table instead.

Signature

(frame-face-alist &optional FRAME)

Documentation

Return an alist of frame-local faces defined on FRAME.

This alist is a copy of the contents of frame--face-hash-table. For internal use only.

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun frame-face-alist (&optional frame)
  "Return an alist of frame-local faces defined on FRAME.
This alist is a copy of the contents of `frame--face-hash-table'.
For internal use only."
  (declare (obsolete frame--face-hash-table "28.1"))
  (let (faces)
    (maphash (lambda (face spec)
               (let ((face-id  (car (gethash face face--new-frame-defaults))))
                 (push `(,face-id ,face . ,spec) faces)))
             (frame--face-hash-table frame))
    (mapcar #'cdr (sort faces (lambda (f1 f2) (< (car f1) (car f2)))))))