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

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

[elpa] externals/org 8944124edf 1/2: Revert "org-persist-gc: GC collecti


From: ELPA Syncer
Subject: [elpa] externals/org 8944124edf 1/2: Revert "org-persist-gc: GC collections without persist file"
Date: Sun, 7 May 2023 05:01:01 -0400 (EDT)

branch: externals/org
commit 8944124edf271ef60ed01aec340e419388fa7ea2
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    Revert "org-persist-gc: GC collections without persist file"
    
    `org-persist-gc' is ran before `org-persist-write-all' and we may not
    yet have all the persist files written.  Absence of a persist files is
    thus not a sign that collection is expired.
    
    This reverts commit e11073d17dd65908642268146858c6559f18367d.
---
 lisp/org-persist.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index bba39d8d09..d8b7dc4a1a 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -1210,8 +1210,7 @@ Also, remove containers associated with non-existing 
files."
               (setq expired? t)))
           (if expired?
               (org-persist--gc-persist-file persist-file)
-            (when (file-exists-p persist-file)
-              (push collection new-index))
+            (push collection new-index)
             (dolist (container (plist-get collection :container))
               (dolist (associated-file
                        (org-persist-associated-files:generic



reply via email to

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