mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
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:
parent
bbbdf0478e
commit
d25c729825
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue