aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2019-07-27 20:30:47 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2019-07-27 20:30:47 +0100
commit1a9115d9ea2889935e018a451bf78608d6aac480 (patch)
tree65b258e55b78328d36a0cced94d29bbb1c2f635c
parent5155bcb66f1f3c7f98e193099f8fb751d25f3e36 (diff)
downloadorg-drill-1a9115d9ea2889935e018a451bf78608d6aac480.tar.gz
org-drill-1a9115d9ea2889935e018a451bf78608d6aac480.zip
Fix org-get-tags compatability
The <9.2 compatability advice was working incorrectly by calling `org-get-tags` which prior to 9.2 returned only local tags. This now calls `org-get-tags-at` which seems to work.
-rw-r--r--org-drill.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/org-drill.el b/org-drill.el
index 2e19530..b342e05 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -661,7 +661,9 @@ regardless of whether the test was successful.")
(if (= 2 (length args))
;; and we don't want any byte compile errors
(if (fboundp 'org-get-local-tags) (org-get-local-tags))
- (funcall orig-fun)))
+ ;; the non-arg version doesn't return inherited tags, but
+ ;; get-tags-at does.
+ (org-get-tags-at)))
(when (= 8 (car (version-to-list org-version)))
;; Shut up package-lint