mu4e-org: Use derived-mode-p correctly

Fixes: #1840
This commit is contained in:
Dirk-Jan C. Binnema 2020-11-24 00:14:54 +02:00
parent 1f1415c91f
commit d7512b1259
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ It links to the last known query when in `mu4e-headers-mode' with
`mu4e-org-link-query-in-headers-mode' set; otherwise it links to
a specific message, based on its message-id, so that links stay
valid even after moving the message around."
(when (derived-mode-p '(mu4e-view-mode mu4e-headers-mode))
(if (and (derived-mode-p '(mu4e-headers-mode))
(when (derived-mode-p 'mu4e-view-mode 'mu4e-headers-mode)
(if (and (derived-mode-p 'mu4e-headers-mode)
mu4e-org-link-query-in-headers-mode)
(mu4e~org-store-link-query)
(when (mu4e-message-at-point)