From: Michal Sojka <sojkam1@fel.cvut.cz>
To: notmuch@notmuchmail.org
Subject: [PATCH v4 1/3] Emacs: Display a message when generating address completion candidates
Date: Fri, 19 Sep 2014 20:16:40 +0200 [thread overview]
Message-ID: <1411150602-21892-2-git-send-email-sojkam1@fel.cvut.cz> (raw)
In-Reply-To: <1411150602-21892-1-git-send-email-sojkam1@fel.cvut.cz>
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
next prev parent reply other threads:[~2014-09-19 18:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 18:16 [PATCH v4 0/3] Emacs: Address completion implemented in elisp Michal Sojka
2014-09-19 18:16 ` Michal Sojka [this message]
2015-01-18 10:04 ` [PATCH v4 1/3] Emacs: Display a message when generating address completion candidates David Bremner
2014-09-19 18:16 ` [PATCH v4 2/3] Emacs: Add address completion mechanism implemented in elisp Michal Sojka
2015-01-17 13:57 ` [PATCH] emacs: convert notmuch-address-harvester to use notmuch-address David Bremner
2015-01-17 14:49 ` David Bremner
2015-01-19 9:22 ` David Edmondson
2014-09-19 18:16 ` [PATCH v4 3/3] Emacs: Add address completion based on company-mode Michal Sojka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411150602-21892-2-git-send-email-sojkam1@fel.cvut.cz \
--to=sojkam1@fel.cvut.cz \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).