[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia f352bb76df 2/2: Add comment regarding the tr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/marginalia f352bb76df 2/2: Add comment regarding the truncate-string-ellipsis |
Date: |
Tue, 11 Jan 2022 09:57:42 -0500 (EST) |
branch: externals/marginalia
commit f352bb76df3dc4c6c28c12cfd9f71003a491760b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Add comment regarding the truncate-string-ellipsis
---
marginalia.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/marginalia.el b/marginalia.el
index e0438d1545..1791efa115 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -347,6 +347,9 @@ for performance profiling of the annotators.")
(defun marginalia--ellipsis ()
"Return ellipsis."
(or marginalia--ellipsis
+ ;; Emacs 28 offers the function `truncate-string-ellipsis'.
+ ;; Unfortunately we cannot use it here due to backward
+ ;; compatibility. Replicate it instead.
(setq marginalia--ellipsis
(cond
((bound-and-true-p truncate-string-ellipsis))