[PATCH 1/4] contrib: pick: print () for a message with no tags

2013-09-02 Thread Mark Walters
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 |7 +++
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/contrib/notmuch-pick/notmuch-pick.el 
b/contrib/notmuch-pick/notmuch-pick.el
index 37dc161..063d660 100644
--- a/contrib/notmuch-pick/notmuch-pick.el
+++ b/contrib/notmuch-pick/notmuch-pick.el
@@ -652,10 +652,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"
-- 
1.7.9.1



[PATCH 1/4] contrib: pick: print () for a message with no tags

2013-09-01 Thread Mark Walters
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 |7 +++
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/contrib/notmuch-pick/notmuch-pick.el 
b/contrib/notmuch-pick/notmuch-pick.el
index 37dc161..063d660 100644
--- a/contrib/notmuch-pick/notmuch-pick.el
+++ b/contrib/notmuch-pick/notmuch-pick.el
@@ -652,10 +652,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
-- 
1.7.9.1

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch