aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2014-07-16 19:03:16 +0100
committerGravatar David Bremner <david@tethera.net>2014-07-30 18:25:58 -0300
commitd25c729825aef16c31464b9f3f611ec958e951bb (patch)
treedf00979b3fa3cb5195f37442e015a59ae2c0fe85 /emacs
parentbbbdf0478ea6109afc1ca5a26a8d1cd86b600e2a (diff)
emacs: show: make return value of notmuch-show-get-prop explicit
This makes the fact the notmuch-show-get-prop returns nil if the major mode is neither show not tree explicit.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 529baa97..7549fbb2 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)