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.
This commit is contained in:
Mark Walters 2014-07-16 19:03:16 +01:00 committed by David Bremner
parent bbbdf0478e
commit d25c729825

View 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)