[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb e50a437 043/350: When unloading, don't remove reco
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb e50a437 043/350: When unloading, don't remove records from the db's record slot |
Date: |
Mon, 14 Aug 2017 11:45:59 -0400 (EDT) |
branch: externals/ebdb
commit e50a437d55bf8c8f3d840a4f55d13e0597c71596
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
When unloading, don't remove records from the db's record slot
This probably will help with #11
* ebdb.el (ebdb-db-unload): Records should not be removed from the
db's 'record slot, that will result in them getting deleted
altogether! Just use `ebdb-delete-record' to get them out of the
secondary data structures, then remove the db from `ebdb-db-list'.
---
ebdb.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index 89e29d5..a2122fb 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2877,8 +2877,8 @@ that doesn't belong to a different database."
;; databases.
(if (= 1 (length (slot-value (ebdb-record-cache r) 'database)))
(ebdb-delete-record r db t)
- (object-remove-from-list (ebdb-record-cache r) 'database db))
- (object-remove-from-list db 'records r)))
+ (object-remove-from-list (ebdb-record-cache r) 'database db)))
+ (setq ebdb-db-list (cl-remove db ebdb-db-list)))
(defun ebdb-db-reload (db)
(ebdb-db-unload db)
- [elpa] externals/ebdb 7126d5d 027/350: Hash record uuids during the loading process, (continued)
- [elpa] externals/ebdb 7126d5d 027/350: Hash record uuids during the loading process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 60aea3d 045/350: ebdb-create-record: set record class outside of interactive call, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e178321 051/350: Trailing code in last commit, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c212316 014/350: First commit of buffer improvements, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb dbd3559 042/350: Do away with ebdb-seen-uuids, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7570ed9 040/350: Protect against non-present records in role delete method, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c44b910 056/350: New ebdb-copy-mail-as-kill command, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 10b0fa4 057/350: Use save-excursion in ebdb-toggle-all-record-marks, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a2d2116 058/350: Use eieio-object-p instead of vectorp, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a158434 055/350: Remove ebdb-browse-url, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e50a437 043/350: When unloading, don't remove records from the db's record slot,
Eric Abrahamsen <=
- [elpa] externals/ebdb 5ce28dc 048/350: Remove ebdb-file-coding-system variable, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 886cfd0 054/350: Change gnorb tags field to plain org tags field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9a42885 061/350: ebdb-prompt-for-mail should return single mails with no prompt, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e4f1cf5 046/350: Fix broken quoting for organization simple name reading, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9e2c0e8 049/350: Fix logic of loading records from multiple databases, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bd9dd94 072/350: Use ebdb-defunct face on defunct role fields, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 2ec61be 059/350: Fixup bbdb-mode keymap, menu, and docstring, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e49e9da 077/350: Using wrong var name in ebdb-edit-field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 794babc 069/350: Fix mail field action, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7d41fb9 076/350: Small tweaks to ebdb-load, Eric Abrahamsen, 2017/08/14