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:
parent
4f454b18e4
commit
1c54d75cca
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user