From 9cf120b012cbe7ee4ef52299c1c0d66d08d32800 Mon Sep 17 00:00:00 2001 From: djcb Date: Thu, 21 Feb 2019 17:21:56 +0200 Subject: [PATCH] mu4e-view: only try to link messages when there is one Otherwise, org-store-link elsewhere might hit the mu4e error. --- mu4e/org-mu4e.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mu4e/org-mu4e.el b/mu4e/org-mu4e.el index f5574ed2..e04d3452 100644 --- a/mu4e/org-mu4e.el +++ b/mu4e/org-mu4e.el @@ -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