From 9b00f4bf1d544331795f64c499868b15f6c60bcd Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 17 Jun 2022 19:23:28 +0800 Subject: [PATCH] org-persist: Fix expiry check * lisp/org-persist.el (org-persist--gc-expired-p): Fix incorrect plist key. --- lisp/org-persist.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index ab1365220..547004025 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -344,8 +344,8 @@ FORMAT and ARGS are passed to `message'." (`nil t) (`never nil) ((pred numberp) - (when (plist-get ,collection :access-time) - (<= (float-time) (+ (plist-get ,collection :access-time) (* ,cnd 24 60 60))))) + (when (plist-get ,collection :last-access) + (<= (float-time) (+ (plist-get ,collection :last-access) (* ,cnd 24 60 60))))) ((pred functionp) (funcall ,cnd ,collection)) (_ (error "org-persist: Unsupported expiry type %S" ,cnd))))