aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2020-10-06 10:50:46 +0300
committerJuri Linkov2020-10-06 10:50:46 +0300
commit809934f0220e1d9a1780ab97d04fececf2b934eb (patch)
treeecb66f77f3ca75c48fa70c986fc083656ee1d24c
parent96f502496e973c60718f9d44975396ae0bf8bece (diff)
downloademacs-809934f0220e1d9a1780ab97d04fececf2b934eb.tar.gz
emacs-809934f0220e1d9a1780ab97d04fececf2b934eb.zip
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.
-rw-r--r--lisp/international/mule-util.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index c757e866981..05ef33ccf58 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -52,13 +52,13 @@ returned by the function `truncate-string-ellipsis'.")
52(defun truncate-string-ellipsis () 52(defun truncate-string-ellipsis ()
53 "Return the string used to indicate truncation. 53 "Return the string used to indicate truncation.
54Use the value of the variable `truncate-string-ellipsis' when it's non-nil. 54Use the value of the variable `truncate-string-ellipsis' when it's non-nil.
55Otherwise, return `…' when it's displayable on the selected frame, 55Otherwise, return the Unicode character \"HORIZONTAL ELLIPSIS\" when
56or `...'. This function needs to be called on every use of 56it's displayable on the selected frame, or `...'. This function needs
57`truncate-string-to-width' to decide whether the selected frame 57to be called on every use of `truncate-string-to-width' to decide
58can display the character `…'." 58whether the selected frame can display that Unicode character."
59 (cond 59 (cond
60 (truncate-string-ellipsis) 60 (truncate-string-ellipsis)
61 ((char-displayable-p ?) "") 61 ((char-displayable-p ?\N{HORIZONTAL ELLIPSIS}) "\N{HORIZONTAL ELLIPSIS}")
62 ("..."))) 62 ("...")))
63 63
64;;;###autoload 64;;;###autoload