]> git.eshelyaron.com Git - emacs.git/commitdiff
Use … in Gnus mode lines (when shortening them)
authorJuri Linkov <juri@linkov.net>
Mon, 5 Oct 2020 07:01:03 +0000 (09:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 5 Oct 2020 07:01:03 +0000 (09:01 +0200)
* 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

index b3ed5cb66472d84d3f6a8fa55daa50af09580505..561f199531e44d9b424fb6379c27022371c22784 100644 (file)
@@ -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)))