branch: master commit fc0dcc11434183231b95c650d8cd485a570661d4 Author: Ian D <du...@gnu.org> Commit: Ian D <du...@gnu.org>
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)