X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=emacs%2Fnotmuch-address.el;h=2eaca7958bb2736de3e21abe0e04a5946f95ab96;hb=df9736f20be0aa4db96e3ceaccb4f614ecbd4a9b;hp=b3c56cfaad9dc212b990559171c1df2499b39722;hpb=71012e81098dce71cbd69479ecdee375a24db79c;p=notmuch diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index b3c56cfa..2eaca795 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -37,7 +37,11 @@ (defvar notmuch-address-full-harvest-finished nil "t indicates that full completion address harvesting has been -finished") +finished. Use notmuch-address--harvest-ready to access.") + +(defun notmuch-address--harvest-ready () + "Return t if there is a full address hash available." + notmuch-address-full-harvest-finished) (defcustom notmuch-address-command 'internal "Determines how address completion candidates are generated. @@ -170,7 +174,7 @@ elisp-based implementation or older implementation requiring external commands." (cond ((eq notmuch-address-command 'internal) - (when (not notmuch-address-full-harvest-finished) + (unless (notmuch-address--harvest-ready) ;; First, run quick synchronous harvest based on what the user ;; entered so far (notmuch-address-harvest original t))