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

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

[elpa] master 1fb6dcf 013/135: Added chain action


From: Ian Dunn
Subject: [elpa] master 1fb6dcf 013/135: Added chain action
Date: Mon, 17 Feb 2020 10:52:44 -0500 (EST)

branch: master
commit 1fb6dcf56deda1e111892719c690bacdbe09bee0
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>

    Added chain action
    
    Chain will copy a given property from the old entry to its targets.
    
    * org-bat.el (org-bat-action/chain): New function.
---
 org-bat.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/org-bat.el b/org-bat.el
index 41c7627..2ecf883 100644
--- a/org-bat.el
+++ b/org-bat.el
@@ -374,6 +374,10 @@ IDS are all UUIDs as understood by `org-id-find'."
   (ignore last-entry)
   (org-archive-subtree-default-with-confirmation))
 
+(defun org-bat-action/chain (last-entry property)
+  (when-let ((old-prop (org-entry-get last-entry property)))
+    (org-entry-put nil property old-prop)))
+
 
 
 ;; For most conditions, we return true if condition is true and neg is false, 
or



reply via email to

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