[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/org-edna 89baba4 13/72: Added chain action
From: |
Ian Dunn |
Subject: |
[elpa] scratch/org-edna 89baba4 13/72: Added chain action |
Date: |
Sun, 21 May 2017 21:11:20 -0400 (EDT) |
branch: scratch/org-edna
commit 89baba47dccea0c75d187b83226f5f6194af7f55
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
- [elpa] branch scratch/org-edna created (now 901a84a), Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 352d95c 06/72: Added has-property condition, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 69cc5d4 07/72: Added package requirements, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 0273bf1 02/72: Make all finders return lists of markers, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 03a6a95 03/72: Added Makefile., Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 5e69f84 04/72: Added .bzrignore., Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 6ec67b8 10/72: Improved org-bat-parse-form to handle new argument types, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 8b58c07 14/72: Clarified use of case-fold-search in `org-bat--handle-planning', Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 00ef89a 11/72: Added tests for org-bat-parse-form, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 8aeb66c 08/72: Added more custom IDs to documentation, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 89baba4 13/72: Added chain action,
Ian Dunn <=
- [elpa] scratch/org-edna e2db4dc 19/72: Remove duplicate targets, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 68b01b8 16/72: Fixed bug in Makefile, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna dc320fe 17/72: Use existing org-xor instead of new function, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 0977b83 20/72: Don't assume arguments will be symbols or strings, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 8a8cfd6 12/72: Cleaned up condition handling, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna b40f7f0 05/72: Added initial documentation, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 4a54e3b 09/72: Fixed headings condition, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna dcbb344 18/72: Fixed up indenting, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna ef34291 26/72: Fixed chain-find, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 6cd8a40 28/72: Added test for parsing multiple forms, Ian Dunn, 2017/05/21