X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;fp=emacs%2Fnotmuch-tree.el;h=51a43eddc6c67a9ba55030d8ed77291343b31788;hp=a06afc2d1c0e1ef6d0d42f8e73d333b30895ded5;hb=f47e3333b5478e43840e55710311aebdd441fc0e;hpb=25a8873c68f9ef033d393efaf7f4c46a29f798f4 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index a06afc2d..51a43edd 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -401,9 +401,8 @@ Some useful entries are: (notmuch-tree-set-message-properties props))) (defun notmuch-tree-get-prop (prop &optional props) - (let ((props (or props - (notmuch-tree-get-message-properties)))) - (plist-get props prop))) + (plist-get (or props (notmuch-tree-get-message-properties)) + prop)) (defun notmuch-tree-set-tags (tags) "Set the tags of the current message."