emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7301bf9: Use … in Gnus mode lines (when shortening them)


From: Lars Ingebrigtsen
Subject: master 7301bf9: Use … in Gnus mode lines (when shortening them)
Date: Mon, 5 Oct 2020 03:01:12 -0400 (EDT)

branch: master
commit 7301bf996e71fb7f3b8c50357c89853b8af78533
Author: Juri Linkov <juri@linkov.net>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Use … in Gnus mode lines (when shortening them)
    
    * lisp/gnus/gnus-sum.el (gnus-set-mode-line): Defer ellipsis
    creation to `truncate-string-to-width' (bug#41250).  This uses …
    by default.
---
 lisp/gnus/gnus-sum.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index b3ed5cb..561f199 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -6240,8 +6240,8 @@ If WHERE is `summary', the summary mode line format will 
be used."
          ;; We might have to chop a bit of the string off...
          (when (> (length mode-string) max-len)
            (setq mode-string
-                 (concat (truncate-string-to-width mode-string (- max-len 3))
-                         "...")))))
+                 (truncate-string-to-width
+                  mode-string (- max-len 3) nil nil t)))))
       ;; Update the mode line.
       (setq mode-line-buffer-identification
            (gnus-mode-line-buffer-identification (list mode-string)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]