Function: truncate-string-ellipsis
truncate-string-ellipsis is a byte-compiled function defined in
mule-util.el.gz.
Signature
(truncate-string-ellipsis)
Documentation
Return the string used to indicate truncation.
Use the value of the variable truncate-string-ellipsis(var)/truncate-string-ellipsis(fun) when it's non-nil.
Otherwise, return the Unicode character U+2026 "HORIZONTAL ELLIPSIS"
when it's displayable on the selected frame, or .... This function
needs to be called on every use of truncate-string-to-width to
decide whether the selected frame can display that Unicode character.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule-util.el.gz
(defun truncate-string-ellipsis ()
"Return the string used to indicate truncation.
Use the value of the variable `truncate-string-ellipsis' when it's non-nil.
Otherwise, return the Unicode character U+2026 \"HORIZONTAL ELLIPSIS\"
when it's displayable on the selected frame, or `...'. This function
needs to be called on every use of `truncate-string-to-width' to
decide whether the selected frame can display that Unicode character."
(cond
(truncate-string-ellipsis)
((char-displayable-p ?…) "…")
("...")))