Function: majutsu-diff--presentation-properties

majutsu-diff--presentation-properties is a natively compiled function defined in majutsu-diff.el.

Signature

(majutsu-diff--presentation-properties VALUE)

Documentation

Return face properties at the beginning of string VALUE.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defun majutsu-diff--presentation-properties (value)
  "Return face properties at the beginning of string VALUE."
  (when (and (stringp value) (not (string-empty-p value)))
    (let ((face (get-text-property 0 'face value))
          (font-lock-face (get-text-property 0 'font-lock-face value)))
      (append (and face (list 'face face))
              (and font-lock-face (list 'font-lock-face font-lock-face))))))