emacs: show: make return value of notmuch-show-get-prop explicit
authorMark Walters <markwalters1009@gmail.com>
Wed, 16 Jul 2014 18:03:16 +0000 (19:03 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 30 Jul 2014 21:25:58 +0000 (18:25 -0300)
This makes the fact the notmuch-show-get-prop returns nil if the major
mode is neither show not tree explicit.

emacs/notmuch-show.el

index 529baa972bbeccd49f70b7f50f796ed1959c41ad..7549fbb2d32643d79a2483ba7b2906920aa0ae3e 100644 (file)
@@ -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)