[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 809934f: Don't use the character '…' literally in mule-util.el (
From: |
Juri Linkov |
Subject: |
master 809934f: Don't use the character '…' literally in mule-util.el (bug#41250) |
Date: |
Tue, 6 Oct 2020 03:50:59 -0400 (EDT) |
branch: master
commit 809934f0220e1d9a1780ab97d04fececf2b934eb
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
Don't use the character '…' literally in mule-util.el (bug#41250)
* lisp/international/mule-util.el (truncate-string-ellipsis):
Replace the character '…' with its Unicode name.
---
lisp/international/mule-util.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index c757e86..05ef33c 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 809934f: Don't use the character '…' literally in mule-util.el (bug#41250),
Juri Linkov <=