From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2C727431FC0 for ; Fri, 19 Sep 2014 11:17:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AcmK8vUbAhno for ; Fri, 19 Sep 2014 11:17:03 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 77E6D431FAE for ; Fri, 19 Sep 2014 11:17:03 -0700 (PDT) Received: from localhost (unknown [192.168.200.7]) by max.feld.cvut.cz (Postfix) with ESMTP id 6808B19F33C7; Fri, 19 Sep 2014 20:17:02 +0200 (CEST) X-Virus-Scanned: IMAP STYX AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044) with ESMTP id tHPHEYGtyDYm; Fri, 19 Sep 2014 20:16:57 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id C695D19F33EA; Fri, 19 Sep 2014 20:16:56 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.84) (envelope-from ) id 1XV2jn-0005i2-Ub; Fri, 19 Sep 2014 20:16:55 +0200 From: Michal Sojka 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 Message-Id: <1411150602-21892-2-git-send-email-sojkam1@fel.cvut.cz> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411150602-21892-1-git-send-email-sojkam1@fel.cvut.cz> References: <1411150602-21892-1-git-send-email-sojkam1@fel.cvut.cz> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 18:17:07 -0000 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