emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-drill 7dece4a5e4 229/251: Fix org-get-tags compatabili


From: ELPA Syncer
Subject: [nongnu] elpa/org-drill 7dece4a5e4 229/251: Fix org-get-tags compatability
Date: Mon, 17 Jan 2022 18:59:21 -0500 (EST)

branch: elpa/org-drill
commit 7dece4a5e4b37ff32a7733e407d19ba67422008b
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>

    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.
---
 org-drill.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-drill.el b/org-drill.el
index 2e19530c22..b342e05ae5 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]