0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-24 21:32:52 +00:00

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 e11073d17d.
This commit is contained in:
Ihor Radchenko 2023-05-06 17:50:18 +02:00
parent 080710797a
commit 8944124edf
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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