1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-22 07:06:48 +02:00

Merge pull request #300 from thierryvolpiatto/master

* fix empty buffer when replying and prevent user calling a new update when one is already running.
This commit is contained in:
Dirk-Jan C. Binnema 2013-10-19 02:12:30 -07:00
commit 33b5844568
2 changed files with 5 additions and 1 deletions

View File

@ -377,7 +377,7 @@ tempfile)."
;; hide some headers
(mu4e~compose-hide-headers)
;; switch on the mode
(mu4e-compose-mode))
(run-with-timer 0.01 nil #'(lambda () (mu4e-compose-mode))))
(defun mu4e-sent-handler (docid path)

View File

@ -805,6 +805,10 @@ The messages are inserted into the process buffer."
run-in-background is non-nil (or called with prefix-argument), run
in the background; otherwise, pop up a window."
(interactive "P")
(when (and mu4e~update-buffer-name
(get-buffer-process
(get-buffer mu4e~update-buffer-name)))
(mu4e-error "Update process is already running"))
(run-hooks 'mu4e-update-pre-hook)
(unless mu4e-get-mail-command
(mu4e-error "`mu4e-get-mail-command' is not defined"))