]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
Emacs: Display a message when generating address completion candidates
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 19 Sep 2014 18:16:40 +0000 (20:16 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 18 Jan 2015 10:01:26 +0000 (11:01 +0100)
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

index fa65cd52a318d5d91fb4eaf4fa3f751127159ec3..fde3c1b2b861fb15063abe5fb4d480084149c88c 100644 (file)
@@ -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)