[PATCH v4 1/3] Emacs: Display a message when generating address completion candidates

Subject: [PATCH v4 1/3] Emacs: Display a message when generating address completion candidates

Date: Fri, 19 Sep 2014 20:16:40 +0200

To: notmuch@notmuchmail.org

Cc:

From: Michal Sojka


The TAB-initiated address completion generates completion candidates
synchronously, blocking the UI. Since this can take long time, it is
better to let the use know what's happening.
---
 emacs/notmuch-address.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index fa65cd5..fde3c1b 100644
--- a/emacs/notmuch-address.el
+++ b/emacs/notmuch-address.el
@@ -70,7 +70,8 @@ to know how address selection is made by default."
 		(point)))
 	 (orig (buffer-substring-no-properties beg end))
 	 (completion-ignore-case t)
-	 (options (notmuch-address-options orig))
+	 (options (with-temp-message "Looking for completion candidates..."
+		    (notmuch-address-options orig)))
 	 (num-options (length options))
 	 (chosen (cond
 		  ((eq num-options 0)
-- 
2.1.0


Thread: