[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 749e012e65 216/251: Merge branch 'fix/drill-matc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 749e012e65 216/251: Merge branch 'fix/drill-matching' into 'master' |
Date: |
Mon, 17 Jan 2022 18:59:19 -0500 (EST) |
branch: elpa/org-drill
commit 749e012e651e0caa620b13fef861a3c187ac005e
Merge: de1e419ae3 0444db69f5
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Merge branch 'fix/drill-matching' into 'master'
fix reversed member arguments
See merge request phillord/org-drill!2
---
org-drill.el | 2 +-
test/one-two-three.org | 2 +-
test/org-drill-test.el | 18 +++++++++++++-----
3 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index fcb9e08a97..2f4bc72fc5 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -724,7 +724,7 @@ CMD is bound, or nil if it is not bound to a key."
(apply 'org-map-entries func
(concat "+" org-drill-question-tag
(if (and (stringp org-drill-match)
- (not (member '(?+ ?- ?|) (elt org-drill-match 0))))
+ (not (member (elt org-drill-match 0) '(?+ ?- ?|))))
"+" "")
(or org-drill-match ""))
(org-drill-current-scope scope)
diff --git a/test/one-two-three.org b/test/one-two-three.org
index a34f905033..c1120b66d9 100644
--- a/test/one-two-three.org
+++ b/test/one-two-three.org
@@ -1,5 +1,5 @@
-* One :drill:
+* One :drill:tagtest:
Body of One
diff --git a/test/org-drill-test.el b/test/org-drill-test.el
index 529d411ea3..eb3c527bae 100644
--- a/test/org-drill-test.el
+++ b/test/org-drill-test.el
@@ -38,8 +38,16 @@
(ert-deftest find-entries ()
(should
- (equal '(2 30 58)
- (assess-with-find-file
- (assess-make-related-file
- (concat this-directory "one-two-three.org"))
- (org-drill-map-entries (lambda () (point)) 'file nil)))))
+ (equal '(2 38 66)
+ (assess-with-find-file
+ (assess-make-related-file
+ (concat this-directory "one-two-three.org"))
+ (org-drill-map-entries (lambda () (point)) 'file nil)))))
+
+(ert-deftest find-tagged-entries ()
+ (should
+ (equal '(2)
+ (assess-with-find-file
+ (assess-make-related-file
+ (concat this-directory "one-two-three.org"))
+ (org-drill-map-entries (lambda () (point)) 'file "tagtest")))))
- [nongnu] elpa/org-drill 1429c675e8 191/251: Fix compatability call again!, (continued)
- [nongnu] elpa/org-drill 1429c675e8 191/251: Fix compatability call again!, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9eb8d72776 163/251: Update README, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9f9e5e7170 193/251: Renamespace all macros, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 508f2dde21 202/251: Use persist, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 04923e6c38 214/251: Update gitignore for generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c0ee1780de 222/251: Update documentation, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 11dd2d4e23 235/251: Merge branch 'master' into 'fix/latex-overlays', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 6ad53cdf21 217/251: Update documentation, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 6938a466e0 208/251: Update documentation, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b6a4b4f103 238/251: Merge branch 'master' into 'master', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 749e012e65 216/251: Merge branch 'fix/drill-matching' into 'master',
ELPA Syncer <=
- [nongnu] elpa/org-drill 96d7c199a0 221/251: Merge branch 'patch-1' into 'master', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 35c1ce3499 248/251: Merge branch 'branweb/org-mode-version' into 'master', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 7dece4a5e4 229/251: Fix org-get-tags compatability, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0e0f7bcddd 242/251: Bump org-mode version to 9.3, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill e55415221e 249/251: Fix autoloads, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 78d3472033 246/251: add cram-mode test, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b431634c3e 018/251: Bug fix: when drill sessions span more than one file, display items in the other files correctly., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill eb370c7405 077/251: - Moved a line with side effects to earlier in the file, possibly fixing an, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0184220926 150/251: Replace drill-typed-answer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b7b295c80b 122/251: Update gitignore, ELPA Syncer, 2022/01/17