Fix last change

* lisp/international/mule-util.el (truncate-string-ellipsis): Add
a FIXME comment that explains the last change.  (Bug#41250)
This commit is contained in:
Eli Zaretskii 2020-10-06 11:24:15 +03:00
parent 809934f022
commit e704a6956d

View file

@ -52,12 +52,14 @@ returned by the function `truncate-string-ellipsis'.")
(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 \"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."
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)
;; This uses the character's name instead of the character itself
;; to avoid decoding problems when loading this file. FIXME.
((char-displayable-p ?\N{HORIZONTAL ELLIPSIS}) "\N{HORIZONTAL ELLIPSIS}")
("...")))