[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 180d05b 022/135: Added configuration option to use inherit
From: |
Ian Dunn |
Subject: |
[elpa] master 180d05b 022/135: Added configuration option to use inheritance |
Date: |
Mon, 17 Feb 2020 10:52:46 -0500 (EST) |
branch: master
commit 180d05be20f5be4701a90b635048590e028df587
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Added configuration option to use inheritance
* org-edna.el (org-edna-use-inheritance): New defcustom.
(org-edna-trigger-function):
(org-edna-blocker-function): Use it
---
org-edna.el | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/org-edna.el b/org-edna.el
index 1411982..720db92 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -1,4 +1,4 @@
-;;; org-edna.el --- Extendable Blockers and Triggers -*- lexical-binding: t;
-*-
+;;; org-edna.el --- Extensible Dependencies 'N' Actions -*- lexical-binding:
t; -*-
;; Author: Ian Dunn <address@hidden>
;; Keywords: convenience, text, org
@@ -12,6 +12,18 @@
(require 'org)
(require 'subr-x)
+(defgroup org-edna nil
+ "Extensible Dependencies 'N' Actions"
+ :group 'org)
+
+(defcustom org-edna-use-inheritance nil
+ "Whether Edna should use inheritance when looking for properties.
+
+This only applies to the BLOCKER and TRIGGER properties, not any
+properties used during actions or conditions."
+ :group 'org-edna
+ :type 'boolean)
+
(defun org-edna-parse-form (form)
(pcase-let* ((`(,token . ,pos) (read-from-string form))
(modifier nil)
@@ -162,12 +174,12 @@
(defun org-edna-trigger-function (change-plist)
(org-edna-run change-plist
- (when-let ((form (org-entry-get pos "TRIGGER")))
+ (when-let ((form (org-entry-get pos "TRIGGER" org-edna-use-inheritance)))
(org-edna-process-form form 'action))))
(defun org-edna-blocker-function (change-plist)
(org-edna-run change-plist
- (if-let ((form (org-entry-get pos "BLOCKER")))
+ (if-let ((form (org-entry-get pos "BLOCKER" org-edna-use-inheritance)))
(org-edna-process-form form 'condition)
t)))
- [elpa] master 71e00e4 036/135: Fixed consideration handling, (continued)
- [elpa] master 71e00e4 036/135: Fixed consideration handling, Ian Dunn, 2020/02/17
- [elpa] master 9f27779 014/135: Clarified use of case-fold-search in `org-bat--handle-planning', Ian Dunn, 2020/02/17
- [elpa] master 13e752b 021/135: Fix uses of substring, Ian Dunn, 2020/02/17
- [elpa] master 3937f31 009/135: Fixed headings condition, Ian Dunn, 2020/02/17
- [elpa] master 975da4b 010/135: Improved org-bat-parse-form to handle new argument types, Ian Dunn, 2020/02/17
- [elpa] master 029bc2e 012/135: Cleaned up condition handling, Ian Dunn, 2020/02/17
- [elpa] master 602ad6d 011/135: Added tests for org-bat-parse-form, Ian Dunn, 2020/02/17
- [elpa] master a70f9ac 016/135: Fixed bug in Makefile, Ian Dunn, 2020/02/17
- [elpa] master abb0083 018/135: Fixed up indenting, Ian Dunn, 2020/02/17
- [elpa] master cb1f51f 020/135: Don't assume arguments will be symbols or strings, Ian Dunn, 2020/02/17
- [elpa] master 180d05b 022/135: Added configuration option to use inheritance,
Ian Dunn <=
- [elpa] master b38a1ca 024/135: Added tests for ids and match finders, Ian Dunn, 2020/02/17
- [elpa] master 30fc4cd 023/135: Created finders for compatibility with org-depend, Ian Dunn, 2020/02/17
- [elpa] master 9916819 028/135: Added test for parsing multiple forms, Ian Dunn, 2020/02/17
- [elpa] master fc0dcc1 029/135: Added re-search condition, Ian Dunn, 2020/02/17
- [elpa] master c675036 030/135: Added test for empty argument list, Ian Dunn, 2020/02/17
- [elpa] master 7a3332d 032/135: Fixed error in re-search, Ian Dunn, 2020/02/17
- [elpa] master 6470c5f 033/135: Added test for todo action, Ian Dunn, 2020/02/17
- [elpa] master db23e3f 034/135: Added some more test headings, Ian Dunn, 2020/02/17
- [elpa] master aa259f0 037/135: Fix considerations, Ian Dunn, 2020/02/17
- [elpa] master f80835a 038/135: Added tests for considerations, Ian Dunn, 2020/02/17