Emacs: Display a message when generating address completion candidates

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.
This commit is contained in:
Michal Sojka 2014-09-19 20:16:40 +02:00 committed by David Bremner
parent 9d25c97d8b
commit 2a0a13a433

View 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)