mu4e-compose: avoid find-file

Use find-file-noselect instead.

Fixes #2644
This commit is contained in:
Dirk-Jan C. Binnema 2024-04-09 20:17:21 +03:00
parent 51163f3e60
commit 1aad948293
1 changed files with 4 additions and 2 deletions

View File

@ -1002,8 +1002,10 @@ must be from current user, as determined through
(mu4e--compose-setup
'edit
(lambda (parent)
(find-file (plist-get parent :path))
(mu4e--delimit-headers)))))
(let ((buf (find-file (plist-get parent :path))))
(with-current-buffer buf
(mu4e--delimit-headers))
buf)))))
;;;###autoload
(defun mu4e-compose-resend (address)