[PATCH] emacs: show: make return value of notmuch-show-get-prop explicit

Subject: [PATCH] emacs: show: make return value of notmuch-show-get-prop explicit

Date: Wed, 16 Jul 2014 19:03:16 +0100

To: notmuch@notmuchmail.org

Cc:

From: Mark Walters


This makes the fact the notmuch-show-get-prop returns nil if the major
mode is neither show not tree explicit.
---
This is a followup to the patch and review comment at 
id:874myhabi0.fsf@maritornes.cs.unb.ca

Best wishes

Mark

 emacs/notmuch-show.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 529baa9..7549fbb 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1485,7 +1485,8 @@ they just need the correct message properties."
 		   (cond ((eq major-mode 'notmuch-show-mode)
 			  (notmuch-show-get-message-properties))
 			 ((eq major-mode 'notmuch-tree-mode)
-			  (notmuch-tree-get-message-properties))))))
+			  (notmuch-tree-get-message-properties))
+			 (t nil)))))
     (plist-get props prop)))
 
 (defun notmuch-show-get-message-id (&optional bare)
-- 
1.7.10.4


Thread: