emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/notmuch-indicator 441db301e5 3/4: Refine conditional fo


From: ELPA Syncer
Subject: [elpa] externals/notmuch-indicator 441db301e5 3/4: Refine conditional format of labels
Date: Wed, 28 Sep 2022 14:57:50 -0400 (EDT)

branch: externals/notmuch-indicator
commit 441db301e5ec1807ba12f7fc48b8a1cee2e6a56d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Refine conditional format of labels
    
    Thanks to Stefan Monnier for suggesting this on the emacs-devel
    mailing list:
    <https://lists.gnu.org/archive/html/emacs-devel/2022-09/msg01949.html>.
---
 notmuch-indicator.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index ef2ea4e413..d236b743e8 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -172,9 +172,11 @@ option `notmuch-indicator-refresh-count'."
     (define-key map [mode-line mouse-1]
                 (lambda () (interactive) (notmuch-search terms)))
     (propertize
-     (if (and face label)
-         (format "%s%s " (propertize label 'face face) count)
-       (format "%s%s " (or label "") count))
+     (format "%s%s "
+             (if (and face label)
+                 (propertize label 'face face)
+               (or label ""))
+             count)
      'help-echo (format "mouse-1: Open notmuch search for `%s'" terms)
      'local-map map)))
 



reply via email to

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