Function: majutsu-workspace--with-fallback-face

majutsu-workspace--with-fallback-face is a natively compiled function defined in majutsu-workspace.el.

Signature

(majutsu-workspace--with-fallback-face VALUE FACE)

Documentation

Return VALUE with FACE unless it already has presentation properties.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-workspace.el
(defun majutsu-workspace--with-fallback-face (value face)
  "Return VALUE with FACE unless it already has presentation properties."
  (if (or (not (stringp value))
          (string-empty-p value)
          (get-text-property 0 'face value)
          (get-text-property 0 'font-lock-face value))
      value
    (propertize value 'font-lock-face face)))