[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/org-edna c49aeba 36/72: Fixed consideration handling
From: |
Ian Dunn |
Subject: |
[elpa] scratch/org-edna c49aeba 36/72: Fixed consideration handling |
Date: |
Sun, 21 May 2017 21:11:24 -0400 (EDT) |
branch: scratch/org-edna
commit c49aebafe9c1f329610e26e08f8c5c0fe3c6d0e2
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Fixed consideration handling
* org-edna.el (org-edna-handle-consideration): Use >= instead of > when
comparing fulfilled to consideration.
---
org-edna.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/org-edna.el b/org-edna.el
index 50cfe54..440c4d9 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -526,9 +526,9 @@ IDS are all UUIDs as understood by `org-id-find'."
(defun org-edna-transform-consideration (consideration)
(pcase consideration
- ;; Leave symbols alone
+ ;; Change all into a symbol
('"all" (intern consideration))
- ;; Change strings into numbers
+ ;; Change other strings into numbers
((pred stringp)
(string-to-number consideration))
(_
@@ -545,14 +545,14 @@ IDS are all UUIDs as understood by `org-id-find'."
;; A fixed number of them must be fulfilled, so check how many aren't.
(let* ((unfulfilled (seq-count #'identity blocks))
(fulfilled (- total-blocks unfulfilled)))
- (if (> fulfilled consideration)
+ (if (>= fulfilled consideration)
nil
first-block)))
((pred floatp)
;; A certain percentage of them must be fulfilled
(let* ((unfulfilled (seq-count #'identity blocks))
(fulfilled (- total-blocks unfulfilled)))
- (if (> (/ fulfilled total-blocks) consideration)
+ (if (>= (/ fulfilled total-blocks) consideration)
nil
first-block))))))
- [elpa] scratch/org-edna 68b01b8 16/72: Fixed bug in Makefile, (continued)
- [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, 2017/05/21
- [elpa] scratch/org-edna c49aeba 36/72: Fixed consideration handling,
Ian Dunn <=
- [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
- [elpa] scratch/org-edna 6448307 30/72: Added test for empty argument list, Ian Dunn, 2017/05/21