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

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

[elpa] master fc0dcc1 029/135: Added re-search condition


From: Ian Dunn
Subject: [elpa] master fc0dcc1 029/135: Added re-search condition
Date: Mon, 17 Feb 2020 10:52:47 -0500 (EST)

branch: master
commit fc0dcc11434183231b95c650d8cd485a570661d4
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]