emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 6a126e40a7 3/6: org-persist: Ensure index i


From: ELPA Syncer
Subject: [elpa] externals-release/org 6a126e40a7 3/6: org-persist: Ensure index instantiated before read
Date: Wed, 14 Dec 2022 04:57:56 -0500 (EST)

branch: externals-release/org
commit 6a126e40a7c65d6a7644939029a140d47ecb8f79
Author: TEC <git@tecosaur.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-persist: Ensure index instantiated before read
    
    * lisp/org-persist.el (org-persist-read): If the index is empty at the
    start of `org-persist-read', load it before continuing.
---
 lisp/org-persist.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 1a32ed0102..fe339505c5 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -771,6 +771,7 @@ ASSOCIATED can be a plist, a buffer, or a string.
 A buffer is treated as (:buffer ASSOCIATED).
 A string is treated as (:file ASSOCIATED).
 When LOAD? is non-nil, load the data instead of reading."
+  (unless org-persist--index (org-persist--load-index))
   (setq associated (org-persist--normalize-associated associated))
   (setq container (org-persist--normalize-container container))
   (unless (and org-persist-disable-when-emacs-Q



reply via email to

[Prev in Thread] Current Thread [Next in Thread]