branch: externals/ebdb
commit 1ee7829e168313e322b4efce3b4e9488137521db
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Don't auto-save unsynced databases
* ebdb.el (ebdb-auto-save-databases): If a database is unsynced, skip
the autosave.
This might have something to do with #11. It's probably not the full
solution, but will probably avoid errors. A real solution would
be a deeper rethink of unsynced handling.
---
ebdb.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ebdb.el b/ebdb.el
index c286a7b..58f7d21 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2698,7 +2698,8 @@ Run as a hook in the `auto-save-hook"
(when (and auto-save
(null disabled)
(null read-only)
- (ebdb-db-dirty d))
+ (ebdb-db-dirty d)
+ (null (ebdb-db-unsynced d)))
(ebdb-db-do-auto-save d)))))
(add-hook 'auto-save-hook #'ebdb-auto-save-databases)