Function: htmlize-get-override-fstruct

htmlize-get-override-fstruct is a byte-compiled function defined in htmlize.el.

Signature

(htmlize-get-override-fstruct FACE)

Source Code

;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defun htmlize-get-override-fstruct (face)
  (let* ((raw-def (plist-get htmlize-face-overrides face))
         (def (cond ((stringp raw-def) (list :foreground raw-def))
                    ((listp raw-def) raw-def)
                    (t
                     (error "Face override must be %s, got %S"
                            "an attribute list or string" raw-def)))))
    (and def
         (htmlize-attrlist-to-fstruct def (symbol-name face)))))