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

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

[elpa] externals-release/org 58aeb1af15: org-persist-unregister: Fix whe


From: ELPA Syncer
Subject: [elpa] externals-release/org 58aeb1af15: org-persist-unregister: Fix when ASSOCIATED is 'all
Date: Tue, 3 Jan 2023 03:58:02 -0500 (EST)

branch: externals-release/org
commit 58aeb1af15ca8f1c2f215d6da13cf6b141ccf5e9
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-persist-unregister: Fix when ASSOCIATED is 'all
    
    * lisp/org-persist.el (org-persist-unregister): Do not try to
    normalize 'all ASSOCIATED.  It is not a valid association that should
    be handled specially.  Previously, an error was thrown.
---
 lisp/org-persist.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index c3650c167e..336496efbf 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -753,12 +753,12 @@ with `org-persist-write'."
 When ASSOCIATED is `all', unregister CONTAINER everywhere."
   (unless org-persist--index (org-persist--load-index))
   (setq container (org-persist--normalize-container container))
-  (setq associated (org-persist--normalize-associated associated))
   (if (eq associated 'all)
       (mapc (lambda (collection)
               (when (member container (plist-get collection :container))
                 (org-persist-unregister container (plist-get collection 
:associated))))
             org-persist--index)
+    (setq associated (org-persist--normalize-associated associated))
     (let ((collection (org-persist--find-index `(:container ,container 
:associated ,associated))))
       (when collection
         (if (= (length (plist-get collection :container)) 1)



reply via email to

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