Fix mu4e-main revert-buffer-function and use it

* mu4e/mu4e-headers.el (mu4e~headers-quit-buffer): Refresh main buffer
when done.
* mu4e/mu4e-main.el (mu4e-main-mode-map): Don't bind "g" to mu4e, "g"
should be bound to revert-buffer (special-mode).
(mu4e-main-mode): No need to specify map.
(mu4e~main-view-real-1): New.
(mu4e~main-redraw-buffer): New.
(mu4e~main-view-real): Use them.
(mu4e~main-view): Take one more arg REFRESH.
(mu4e~main-toggle-mail-sending-mode): revert-buffer when done.
This commit is contained in:
Thierry Volpiatto
2020-02-21 08:33:07 +01:00
parent e10fc21a9b
commit b1369b6ad9
2 changed files with 47 additions and 26 deletions

View File

@ -1898,7 +1898,7 @@ other windows."
;; now, all *other* windows should be gone. kill ourselves, and return
;; to the main view
(kill-buffer)
(mu4e~main-view))))
(mu4e~main-view 'refresh))))
;;; _
(provide 'mu4e-headers)