mu4e-view: only try to link messages when there is one

Otherwise, org-store-link elsewhere might hit the mu4e error.
This commit is contained in:
djcb
2019-02-21 17:21:56 +02:00
parent 9bffb465bd
commit 9cf120b012

View File

@ -115,7 +115,8 @@ valid even after moving the message around."
(if (and (eq major-mode 'mu4e-headers-mode)
org-mu4e-link-query-in-headers-mode)
(org~mu4e-store-link-query)
(org~mu4e-store-link-message)))
(when (mu4e-message-at-point t)
(org~mu4e-store-link-message))))
;; org-add-link-type is obsolete as of org-mode 9.
;; Instead we will use the org-link-set-parameters method