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

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

[elpa] externals/ebdb aa2d973 147/350: Allow optional records argument t


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb aa2d973 147/350: Allow optional records argument to ebdb-initialize
Date: Mon, 14 Aug 2017 11:46:24 -0400 (EDT)

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

    Allow optional records argument to ebdb-initialize
    
    * ebdb.el (ebdb-initialize): Allow for initializing only a subset of
      records (for now only used when reloading).
---
 ebdb.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebdb.el b/ebdb.el
index 0061706..d6d27da 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4338,13 +4338,13 @@ important work is done by the `ebdb-db-load' method."
 ;; If we wanted to make it seem like EBDB was loading faster, we could
 ;; defer calls to `ebdb-initialize' until the first time the database
 ;; is searched.
-(defun ebdb-initialize ()
+(defun ebdb-initialize (&optional records)
   "After all databases are loaded, initialize the records.
 
 This results in the creation of all the secondary data
 structures: label lists, `ebdb-org-hashtable', record caches,
 etc."
-  (mapcar #'ebdb-init-record ebdb-record-tracker))
+  (mapcar #'ebdb-init-record (or records ebdb-record-tracker)))
 
 (defun ebdb-address-continental-p (address)
   "Return non-nil if ADDRESS is a continental address.



reply via email to

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