Function: markdown-ts--resolve-display-value
markdown-ts--resolve-display-value is a byte-compiled function defined
in markdown-ts-mode.el.gz.
Signature
(markdown-ts--resolve-display-value VAL)
Documentation
Resolve VAL, a cons (PREFERRED . FALLBACK), to a displayable value.
PREFERRED and FALLBACK can be a character or a string. Return PREFERRED
if it, or its first character, is char-displayable-p, otherwise return
FALLBACK.
If VAL is not a cons or is nil, return VAL.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--resolve-display-value (val)
"Resolve VAL, a cons (PREFERRED . FALLBACK), to a displayable value.
PREFERRED and FALLBACK can be a character or a string. Return PREFERRED
if it, or its first character, is `char-displayable-p', otherwise return
FALLBACK.
If VAL is not a cons or is nil, return VAL."
(if (consp val)
(let* ((preferred (car val))
(ch (if (characterp preferred)
preferred
(aref preferred 0))))
(if (char-displayable-p ch)
(car val)
(cdr val)))
val))