contrib: pick: print () for a message with no tags
authorMark Walters <markwalters1009@gmail.com>
Mon, 2 Sep 2013 03:28:05 +0000 (04:28 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 15 Sep 2013 11:57:21 +0000 (08:57 -0300)
Dating back to the earliest notmuch-pick we have not printed anything
for the tag field for a message with no tags. This is inconsistent
with search and show both of which print "()". Change pick to be
consistent.

contrib/notmuch-pick/notmuch-pick.el

index 2f20aa7d7cc112dcc7213f5a48ec4ff114b14738..c5df94dbb64372adf58f51aae9413b35ea3773a9 100644 (file)
@@ -711,10 +711,9 @@ unchanged ADDRESS if parsing fails."
            (face (if match
                          'notmuch-pick-match-tag-face
                        'notmuch-pick-no-match-tag-face)))
-       (when tags
-         (insert (propertize (format format-string
-                                     (mapconcat #'identity tags ", "))
-                             'face face))))))))
+       (insert (propertize (format format-string
+                                   (mapconcat #'identity tags ", "))
+                           'face face)))))))
 
 (defun notmuch-pick-insert-msg (msg)
   "Insert the message MSG according to notmuch-pick-result-format"