branch: externals/org commit 203420504edcaa42703d8f1e783f656585db2a0b Author: Ihor Radchenko <yanta...@gmail.com> Commit: Ihor Radchenko <yanta...@gmail.com>
org-persist-load:elisp: fix loading --- lisp/org-persist.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index 0e8fd50509..aecfa57a73 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -474,11 +474,11 @@ COLLECTION is the plist holding data collectin." load-func-symbol)) (funcall load-func-symbol container ,reference-data ,collection))) -(defun org-persist-load:elisp (container lisp-value associated) +(defun org-persist-load:elisp (container lisp-value collection) "Load elisp variable container and assign the data to variable symbol." (let ((lisp-symbol (cadr container)) - (buffer (when (plist-get associated :file) - (get-file-buffer (plist-get associated :file))))) + (buffer (when (plist-get (plist-get collection :associated) :file) + (get-file-buffer (plist-get (plist-get collection :associated) :file))))) (if buffer (with-current-buffer buffer (make-variable-buffer-local lisp-symbol)