Function: org-face-from-face-or-color

org-face-from-face-or-color is a byte-compiled function defined in org.el.gz.

Signature

(org-face-from-face-or-color CONTEXT INHERIT FACE-OR-COLOR)

Documentation

Create a face list that inherits INHERIT, but sets the foreground color.

When FACE-OR-COLOR is not a string, just return it.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-face-from-face-or-color (context inherit face-or-color)
  "Create a face list that inherits INHERIT, but sets the foreground color.
When FACE-OR-COLOR is not a string, just return it."
  (if (stringp face-or-color)
      (list :inherit inherit
	    (cdr (assoc context org-faces-easy-properties))
	    face-or-color)
    face-or-color))