branch: externals/ebdb
commit 41bc859f2b72fed059cf08aaa6505e652fd0d445
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
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?