From: Mark Walters Date: Wed, 16 Jul 2014 18:03:16 +0000 (+0100) Subject: emacs: show: make return value of notmuch-show-get-prop explicit X-Git-Tag: address-command-v2~120 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/d25c729825aef16c31464b9f3f611ec958e951bb 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. --- 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)