* mu4e/mu4e-compose.el (mu4e-sent-handler): Honour `message-kill-buffer-on-exit'.

This commit is contained in:
Thierry Volpiatto
2014-03-28 13:38:46 +01:00
parent 14a17ff07c
commit 1b8373f438

View File

@ -390,7 +390,8 @@ the appropriate flag at the message forwarded or replied-to."
;; this seems a bit hamfisted...
(dolist (buf (buffer-list))
(when (and (buffer-file-name buf)
(string= (buffer-file-name buf) path))
(string= (buffer-file-name buf) path)
message-kill-buffer-on-exit)
(kill-buffer buf)))
;; now, try to go back to some previous buffer, in the order
;; view->headers->main