diff options
| author | Juri Linkov | 2020-10-06 10:50:46 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-10-06 10:50:46 +0300 |
| commit | 809934f0220e1d9a1780ab97d04fececf2b934eb (patch) | |
| tree | ecb66f77f3ca75c48fa70c986fc083656ee1d24c | |
| parent | 96f502496e973c60718f9d44975396ae0bf8bece (diff) | |
| download | emacs-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.el | 10 |
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. |
| 54 | Use the value of the variable `truncate-string-ellipsis' when it's non-nil. | 54 | Use the value of the variable `truncate-string-ellipsis' when it's non-nil. |
| 55 | Otherwise, return `…' when it's displayable on the selected frame, | 55 | Otherwise, return the Unicode character \"HORIZONTAL ELLIPSIS\" when |
| 56 | or `...'. This function needs to be called on every use of | 56 | it's displayable on the selected frame, or `...'. This function needs |
| 57 | `truncate-string-to-width' to decide whether the selected frame | 57 | to be called on every use of `truncate-string-to-width' to decide |
| 58 | can display the character `…'." | 58 | whether 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 |