1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-24 07:20:29 +00:00

org-persist--gc-expired-p: Fix expiry check

* lisp/org-persist.el (org-persist--gc-expired-p): Fix comparison when
expiry date is set to number of days.  The old code flipped the check
and treated all the recent entries as expired.
This commit is contained in:
Ihor Radchenko 2022-06-21 09:32:41 +08:00
parent 4f454b18e4
commit 1c54d75cca
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -345,7 +345,7 @@ FORMAT and ARGS are passed to `message'."
(`never nil)
((pred numberp)
(when (plist-get ,collection :last-access)
(<= (float-time) (+ (plist-get ,collection :last-access) (* ,cnd 24 60 60)))))
(> (float-time) (+ (plist-get ,collection :last-access) (* ,cnd 24 60 60)))))
((pred functionp)
(funcall ,cnd ,collection))
(_ (error "org-persist: Unsupported expiry type %S" ,cnd))))