[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/notmuch-indicator d13552fffd 2/4: Rename private functi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/notmuch-indicator d13552fffd 2/4: Rename private function |
Date: |
Tue, 1 Aug 2023 09:58:30 -0400 (EDT) |
branch: externals/notmuch-indicator
commit d13552fffd6172749ce65f56ae01b97109c37a3e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Rename private function
---
notmuch-indicator.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index 109af26157..a853be4904 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -206,6 +206,7 @@ option `notmuch-indicator-refresh-count'."
(notmuch-indicator--format-counter count properties))))
notmuch-indicator-args)))
+(defun notmuch-indicator--return-single-string ()
"Parse `notmuch-indicator-args' and format them as single string."
(mapconcat #'identity (notmuch-indicator--get-counters) " "))
@@ -217,7 +218,7 @@ It is appended to the `global-mode-string'.")
(defun notmuch-indicator--indicator ()
"Prepare new mail count mode line indicator."
(setq global-mode-string (delq 'notmuch-indicator-string global-mode-string))
- (if-let ((count (notmuch-indicator--return-count)))
+ (if-let ((count (notmuch-indicator--return-single-string)))
(setq notmuch-indicator-string count
;; FIXME 2022-09-22: This may be hacky, but I cannot remember or
;; find a function that appends an element as the second in a