From 8944124edf271ef60ed01aec340e419388fa7ea2 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sat, 6 May 2023 17:50:18 +0200 Subject: [PATCH] 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 bba39d8d0..d8b7dc4a1 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