emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e704a69: Fix last change


From: Eli Zaretskii
Subject: master e704a69: Fix last change
Date: Tue, 6 Oct 2020 04:24:52 -0400 (EDT)

branch: master
commit e704a6956d86ae394ecb029e066bf8d8c061baf3
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix last change
    
    * lisp/international/mule-util.el (truncate-string-ellipsis): Add
    a FIXME comment that explains the last change.  (Bug#41250)
---
 lisp/international/mule-util.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index 05ef33c..faf00a7 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -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}")
    ("...")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]