From 65fd0096361fb7951dc65ef05bf20bc547f1ecc9 Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Tue, 15 Oct 2013 15:08:11 +0200 Subject: [PATCH 1/3] * mu4e/mu4e-headers.el (mu4e-headers-mode): Fix typo. --- mu4e/mu4e-headers.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 829ea66e..6b15df73 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -753,7 +753,7 @@ user-interaction ongoing." (set (make-local-variable 'hl-line-face) 'mu4e-header-highlight-face) ;; maybe update the current headers upon indexing changes - (add-hook 'mu4e-index-updated-hook 'mu4~headers-auto-update nil t) + (add-hook 'mu4e-index-updated-hook 'mu4e~headers-auto-update nil t) (setq truncate-lines t buffer-undo-list t ;; don't record undo information From 78ffccfb2d2ee87b04c6c5179a7d205d37ad129b Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Wed, 16 Oct 2013 15:08:12 +0200 Subject: [PATCH 2/3] * mu4e/mu4e-utils.el (mu4e-update-mail-and-index): Don't run a new process if one is already running. --- mu4e/mu4e-utils.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index d8dc162a..9b039942 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -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")) From aa7592d1c321320b230e28f4cde092966c99cb0d Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Thu, 17 Oct 2013 15:15:14 +0200 Subject: [PATCH 3/3] * mu4e/mu4e-compose.el (mu4e~compose-handler): Wait buffer setup before calling mu4e-compose-mode. --- mu4e/mu4e-compose.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index 2656d25a..1106d65f 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -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)