Merge branch 'master' of github.com:djcb/mu

This commit is contained in:
djcb 2015-06-09 21:10:07 +03:00
commit d7c1f19ea7
1 changed files with 5 additions and 4 deletions

View File

@ -400,16 +400,17 @@ 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)
message-kill-buffer-on-exit)
(string= (buffer-file-name buf) path))
(if (and mu4e-compose-in-new-frame (window-system))
(progn
(switch-to-buffer buf)
(when (and (get-buffer-window buf)
(window-frame (get-buffer-window buf)))
(kill-buffer buf)
(delete-frame (window-frame (get-buffer-window buf)))))
(kill-buffer buf))))
)
(if message-kill-buffer-on-exit
(kill-buffer buf))
))
;; now, try to go back to some previous buffer, in the order
;; view->headers->main
(if (buffer-live-p mu4e~view-buffer)