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:
parent
809934f022
commit
e704a6956d
1 changed files with 6 additions and 4 deletions
|
@ -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}")
|
||||
("...")))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue