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

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

[elpa] externals/ebdb 1ee7829 012/350: Don't auto-save unsynced database


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 1ee7829 012/350: Don't auto-save unsynced databases
Date: Mon, 14 Aug 2017 11:45:53 -0400 (EDT)

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

    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)



reply via email to

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