Browing a view that has a header pointing elsewhere is legal

This commit is contained in:
Mickey Petersen 2022-11-30 15:32:45 +00:00
parent ef2c989e08
commit 8d2b75219f
1 changed files with 3 additions and 3 deletions

View File

@ -112,9 +112,9 @@ The current buffer must be either a headers or view buffer."
(let* ((msg (mu4e-message-at-point))
(docid (mu4e-message-field msg :docid)))
(with-current-buffer (mu4e-get-headers-buffer)
(if (mu4e~headers-goto-docid docid)
,@body
(mu4e-error "Cannot find message in headers buffer"))))))))
(when (mu4e~headers-goto-docid docid)
,@body
)))))))
(defconst mu4e-marks
'((refile