Function: face-spec-reset-face
face-spec-reset-face is a byte-compiled function defined in
faces.el.gz.
Signature
(face-spec-reset-face FACE &optional FRAME)
Documentation
Reset all attributes of FACE on FRAME to unspecified.
Source Code
;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun face-spec-reset-face (face &optional frame)
"Reset all attributes of FACE on FRAME to unspecified."
(apply 'set-face-attribute face frame
(if (eq face 'default)
;; For the default face, avoid making any attribute
;; unspecified. Instead, set attributes to default values
;; (see also realize_default_face in xfaces.c).
(append
'(:underline nil :overline nil :strike-through nil
:box nil :inverse-video nil :stipple nil :inherit nil
:extend nil)
;; `display-graphic-p' is unavailable when running
;; temacs, prior to loading frame.el.
(when (fboundp 'display-graphic-p)
(unless (display-graphic-p frame)
`(:family "default" :foundry "default" :width normal
:height 1 :weight normal :slant normal
:foreground ,(if (frame-parameter nil 'reverse)
"unspecified-bg"
"unspecified-fg")
:background ,(if (frame-parameter nil 'reverse)
"unspecified-fg"
"unspecified-bg")))))
;; For all other faces, unspecify all attributes.
face--attributes-unspecified)))