[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org fca80139ee 18/31: org-persist: Fix compatibility wi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org fca80139ee 18/31: org-persist: Fix compatibility with Emacs 27 |
Date: |
Sat, 29 Jan 2022 04:58:09 -0500 (EST) |
branch: externals/org
commit fca80139eebf704d523de559ee9bfa6498565483
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-persist: Fix compatibility with Emacs 27
* lisp/org-persist.el (org-persist--normalize-associated): Do not
expect that we can bind new vars in pacse forms.
(org-persist-read:elisp):
(org-persist-read:version):
(org-persist-read:file):
(org-persist-read:url): Avoid multiple `_' placeholders.
---
lisp/org-persist.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 4552dd4f2e..f80a8e2c18 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -443,7 +443,8 @@ MISC, if non-nil will be appended to the collection."
"Normalize ASSOCIATED representation into (:type value)."
(pcase associated
((or (pred stringp) `(:file ,associated2))
- (when associated2 (setq associated associated2))
+ (unless (stringp associated)
+ (setq associated (cadr associated)))
(let* ((rtn `(:file ,associated))
(inode (and (fboundp 'file-attribute-inode-number)
(file-attribute-inode-number
@@ -451,7 +452,8 @@ MISC, if non-nil will be appended to the collection."
(when inode (plist-put rtn :inode inode))
rtn))
((or (pred bufferp) `(:buffer ,associated2))
- (when associated2 (setq associated associated2))
+ (unless (bufferp associated)
+ (setq associated (cadr associated)))
(let ((cached (gethash associated org-persist--associated-buffer-cache))
file inode hash)
(if (and cached (eq (buffer-modified-tick associated)
@@ -493,20 +495,20 @@ COLLECTION is the plist holding data collectin."
read-func-symbol))
(funcall read-func-symbol c ,reference-data ,collection)))
-(defun org-persist-read:elisp (_ lisp-value _)
+(defun org-persist-read:elisp (_ lisp-value __)
"Read elisp container and return LISP-VALUE."
lisp-value)
-(defun org-persist-read:version (container _ _)
+(defun org-persist-read:version (container _ __)
"Read version CONTAINER."
(cadr container))
-(defun org-persist-read:file (_ path _)
+(defun org-persist-read:file (_ path __)
"Read file container from PATH."
(when (and path (file-exists-p (concat org-persist-directory path)))
(concat org-persist-directory path)))
-(defun org-persist-read:url (_ path _)
+(defun org-persist-read:url (_ path __)
"Read file container from PATH."
(when (and path (file-exists-p (concat org-persist-directory path)))
(concat org-persist-directory path)))
- [elpa] externals/org dafa32da49 06/31: org-persist: Update index version, (continued)
- [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, 2022/01/29
- [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 <=
- [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
- [elpa] externals/org 1bc8389871 21/31: org-persist-read: Check expiry, ELPA Syncer, 2022/01/29
- [elpa] externals/org 6b175fb227 27/31: org-persist-register: Make return value meaningful with :write-immidiately, ELPA Syncer, 2022/01/29
- [elpa] externals/org f0e0716f54 28/31: org-element: Use new cache container format, ELPA Syncer, 2022/01/29
- [elpa] externals/org 19a383d9f4 29/31: org-persist-write-all: Speed up writing, ELPA Syncer, 2022/01/29
- [elpa] externals/org ac5742f296 31/31: Merge branch 'feature/org-persist-new-tidy', ELPA Syncer, 2022/01/29
- [elpa] externals/org 38a681fdae 05/31: org-element-cache-reset: Do not persist caches for non-file buffers, ELPA Syncer, 2022/01/29
- [elpa] externals/org 8821ff5811 09/31: org-persist-read: Do not try to read non-existing containers, ELPA Syncer, 2022/01/29
- [elpa] externals/org 4ec57a9453 16/31: org-persist: Update commentary, ELPA Syncer, 2022/01/29