]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't use the character '…' literally in mule-util.el (bug#41250)
authorJuri Linkov <juri@linkov.net>
Tue, 6 Oct 2020 07:50:46 +0000 (10:50 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 6 Oct 2020 07:50:46 +0000 (10:50 +0300)
* lisp/international/mule-util.el (truncate-string-ellipsis):
Replace the character '…' with its Unicode name.

lisp/international/mule-util.el

index c757e8669819cb5fbc2468ad5683bf7186cd6f1e..05ef33ccf58b83479823762430e5025931cdf94d 100644 (file)
@@ -52,13 +52,13 @@ 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 `…' 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 the character `…'."
+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."
   (cond
    (truncate-string-ellipsis)
-   ((char-displayable-p ?…) "…")
+   ((char-displayable-p ?\N{HORIZONTAL ELLIPSIS}) "\N{HORIZONTAL ELLIPSIS}")
    ("...")))
 
 ;;;###autoload