[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 9b650938e7 13/31: org-persist: Provide human readab
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 9b650938e7 13/31: org-persist: Provide human readable access time and make sure it exist |
Date: |
Sat, 29 Jan 2022 04:58:03 -0500 (EST) |
branch: externals/org
commit 9b650938e798092272023351519a8944d8804cd7
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-persist: Provide human readable access time and make sure it exist
* lisp/org-persist.el (org-persist--storage-version): Bump version.
(org-persist-read:generic):
(org-persist-load:generic):
(org-persist-write:generic): Save access time in human-readable form.
---
lisp/org-persist.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 664111a7ab..524c438e7d 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -102,7 +102,7 @@
(require 'org-id)
(require 'xdg nil t)
-(defconst org-persist--storage-version "2.1"
+(defconst org-persist--storage-version "2.2"
"Persistent storage layout version.")
(defgroup org-persist nil
@@ -422,6 +422,7 @@ COLLECTION is the plist holding data collectin."
`(let* ((c (org-persist--normalize-container ,container))
(read-func-symbol (intern (format "org-persist-read:%s" (car c)))))
(setf ,collection (plist-put ,collection :last-access (float-time)))
+ (setf ,collection (plist-put ,collection :last-access-hr
(format-time-string "%FT%T%z" (float-time))))
(unless (fboundp read-func-symbol)
(error "org-persist: Read function %s not defined"
read-func-symbol))
@@ -469,6 +470,7 @@ COLLECTION is the plist holding data collectin."
`(let* ((container (org-persist--normalize-container ,container))
(load-func-symbol (intern (format "org-persist-load:%s" (car
container)))))
(setf ,collection (plist-put ,collection :last-access (float-time)))
+ (setf ,collection (plist-put ,collection :last-access-hr
(format-time-string "%FT%T%z" (float-time))))
(unless (fboundp load-func-symbol)
(error "org-persist: Load function %s not defined"
load-func-symbol))
@@ -516,6 +518,8 @@ COLLECTION is the plist holding data collectin."
"Write CONTAINER in COLLECTION."
`(let* ((c (org-persist--normalize-container ,container))
(write-func-symbol (intern (format "org-persist-write:%s" (car c)))))
+ (setf ,collection (plist-put ,collection :last-access (float-time)))
+ (setf ,collection (plist-put ,collection :last-access-hr
(format-time-string "%FT%T%z" (float-time))))
(unless (fboundp write-func-symbol)
(error "org-persist: Write function %s not defined"
write-func-symbol))
- [elpa] externals/org updated (22e6ed6b89 -> ac5742f296), ELPA Syncer, 2022/01/29
- [elpa] externals/org 2a4e5a8e58 02/31: org-persist--normalize-associated: Use cache to calculate buffer hash, ELPA Syncer, 2022/01/29
- [elpa] externals/org 703df9310a 07/31: org-persist: Cleanup on removal and version mismatch, ELPA Syncer, 2022/01/29
- [elpa] externals/org dafa32da49 06/31: org-persist: Update index version, ELPA Syncer, 2022/01/29
- [elpa] externals/org f963d617a4 14/31: Fix checkdoc warnings, ELPA Syncer, 2022/01/29
- [elpa] externals/org 9b650938e7 13/31: org-persist: Provide human readable access time and make sure it exist,
ELPA Syncer <=
- [elpa] externals/org 1869a37a2c 10/31: Fix org-persist--remove-from-index, ELPA Syncer, 2022/01/29
- [elpa] externals/org aca62116da 12/31: org-persist-write: Update buffer hash on save, ELPA Syncer, 2022/01/29
- [elpa] externals/org edd7f2962f 01/31: org-persist: Reimplement using more generic approach, ELPA Syncer, 2022/01/29
- [elpa] externals/org 7c2d93560c 03/31: org-persist-default-expiry: Introduce and change default, ELPA Syncer, 2022/01/29
- [elpa] externals/org 1084566322 08/31: Fix org-persist-unregister, ELPA Syncer, 2022/01/29
- [elpa] externals/org d5fc159bf7 15/31: Fix compiler warnings, ELPA Syncer, 2022/01/29
- [elpa] externals/org 203420504e 11/31: org-persist-load:elisp: fix loading, ELPA Syncer, 2022/01/29
- [elpa] externals/org fca80139ee 18/31: org-persist: Fix compatibility with Emacs 27, ELPA Syncer, 2022/01/29
- [elpa] externals/org dc52c0fe99 17/31: Fix native-comp warnings, ELPA Syncer, 2022/01/29
- [elpa] externals/org f3bd1dcb77 20/31: org-persist: Fix compiler warnings, ELPA Syncer, 2022/01/29