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

[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)



reply via email to

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