emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 764d89d 21/33: Provide ebdb-load guard in mua-auto


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 764d89d 21/33: Provide ebdb-load guard in mua-auto-update
Date: Sun, 3 Sep 2017 17:02:23 -0400 (EDT)

branch: externals/ebdb
commit 764d89de40dffeab9031299530913bf7416b2166
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Provide ebdb-load guard in mua-auto-update
    
    * ebdb-mua.el (ebdb-mua-auto-update): It's possible that we'll reach
      this point before any other EBDB load-triggering code has been
      reached. The call to ebdb-get-address-components then leads to
      ebdb-get-user-mail-address-re, which can fail if
      ebdb-user-mail-address-re is set to 'self but records aren't loaded.
---
 ebdb-mua.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ebdb-mua.el b/ebdb-mua.el
index 75750b5..8096692 100644
--- a/ebdb-mua.el
+++ b/ebdb-mua.el
@@ -1181,6 +1181,8 @@ If `ebdb-mua-pop-up' is non-nil, EBDB pops up the *EBDB* 
buffer
 along with the MUA window(s), displaying the matching records."
   (let* ((ebdb-silent-internal t)
         records)
+    (when (null ebdb-record-tracker)
+      (ebdb-load))
     (setq records (ebdb-update-records
                   (ebdb-get-address-components header-class)
                   (or update-p



reply via email to

[Prev in Thread] Current Thread [Next in Thread]