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

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

[elpa] externals/ebdb 41bc859 084/350: Still need to hash newly-added re


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 41bc859 084/350: Still need to hash newly-added records
Date: Mon, 14 Aug 2017 11:46:10 -0400 (EDT)

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

    Still need to hash newly-added records
    
    * ebdb.el (ebdb-db-add-record): This is no longer the main spot for
      uuid checking, but we still need to do it here -- it has to work for
      newly-added records.
---
 ebdb.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ebdb.el b/ebdb.el
index de9ef1e..66b8ffc 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -3027,7 +3027,8 @@ the persistent save, or allow them to propagate."
     (setf (slot-value record 'uuid)
          (make-instance
           'ebdb-field-uuid
-          :uuid (ebdb-make-uuid (slot-value db 'uuid-prefix)))))
+          :uuid (ebdb-make-uuid (slot-value db 'uuid-prefix))))
+    (ebdb-puthash (ebdb-record-uuid record) record))
   (object-add-to-list db 'records record)
   ;; TODO: Is there any need to sort the DB's records after insertion?
   ;; What about sorting ebdb-record-tracker?



reply via email to

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