[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/org-edna 3e1ed0c 29/72: Added re-search condition
From: |
Ian Dunn |
Subject: |
[elpa] scratch/org-edna 3e1ed0c 29/72: Added re-search condition |
Date: |
Sun, 21 May 2017 21:11:23 -0400 (EDT) |
branch: scratch/org-edna
commit 3e1ed0c1898c385fcb50353e1ba10b566bf6f9e0
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Added re-search condition
* org-edna.el (org-edna-condition/re-search): New function.
---
org-edna.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/org-edna.el b/org-edna.el
index 529900b..6f87490 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -517,6 +517,11 @@ IDS are all UUIDs as understood by `org-id-find'."
(when (org-xor condition neg)
(org-get-heading))))
+(defun org-edna-condition/re-search (neg match)
+ (let ((condition (re-search-forward match nil t)))
+ (when (org-xor condition neg)
+ (format "Found %s in %s" match buffer-name))))
+
(defun org-edna-transform-consideration (consideration)
- [elpa] scratch/org-edna e2db4dc 19/72: Remove duplicate targets, (continued)
- [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
- [elpa] scratch/org-edna 3e1ed0c 29/72: Added re-search condition,
Ian Dunn <=
- [elpa] scratch/org-edna c49aeba 36/72: Fixed consideration handling, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 1dfc66f 01/72: Initial Commit., Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna f05cf5e 23/72: Created finders for compatibility with org-depend, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna e8fc9d5 33/72: Added test for todo action, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 70f949c 35/72: Added note about quoting file names to documentation., Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 24a2837 38/72: Added tests for considerations, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 4b91a43 25/72: Added file for tests, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna bb284dc 27/72: Fixed parsing bug, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna d248565 21/72: Fix uses of substring, Ian Dunn, 2017/05/21
- [elpa] scratch/org-edna 7978874 24/72: Added tests for ids and match finders, Ian Dunn, 2017/05/21