summaryrefslogtreecommitdiffhomepage
path: root/net/jao-maildir.el
diff options
context:
space:
mode:
Diffstat (limited to 'net/jao-maildir.el')
-rw-r--r--net/jao-maildir.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/jao-maildir.el b/net/jao-maildir.el
index 8b0f6c9..bedaa7f 100644
--- a/net/jao-maildir.el
+++ b/net/jao-maildir.el
@@ -57,12 +57,13 @@
(a (cdr (assoc m jao-maildir-tracked-maildirs))))
(when (null a) (setq total (+ n total)))
(when a (push (format "%s%s" a n) counts)))))
- (let ((total (if (> total 0) (format " %d " total) " "))
- (s (propertize (mapconcat 'identity counts " ")
- 'face 'font-lock-function-name-face)))
+ (let* ((total (if (> total 0) (format " %d " total) " "))
+ (s (propertize (mapconcat 'identity counts " ")
+ 'face 'font-lock-function-name-face))
+ (s (if (string-empty-p s) s (concat s " "))))
(setq jao-maildir-mode-line-string (format "%s%s" total s))
(when (and jao-maildir-echo-p (not (string-empty-p s)))
- (message "%s" s))
+ (message "Mail%s" s))
(force-mode-line-update t))))
(defvar jao-maildir--watches nil)