diff options
| author | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-25 12:23:05 +0100 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-25 12:23:05 +0100 |
| commit | 1429c675e82a8e470f9d5e24e006c200e966f89f (patch) | |
| tree | d77adbb38b0fbf1db0748764614ef2c4baf6da62 | |
| parent | 29b4faa1745e4c1568a3741a21a77970df79d7dc (diff) | |
| download | org-drill-1429c675e82a8e470f9d5e24e006c200e966f89f.tar.gz org-drill-1429c675e82a8e470f9d5e24e006c200e966f89f.zip | |
Fix compatability call again!
| -rw-r--r-- | org-drill.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/org-drill.el b/org-drill.el index 6172bfd..19f8fa2 100644 --- a/org-drill.el +++ b/org-drill.el @@ -704,8 +704,7 @@ regardless of whether the test was successful.") ;;; Org compatability hacks -(defvar org-drill-org-8-p (string-prefix-p "8" org-version)) -(when org-drill-org-8-p +(when (version< org-version "9.2") (advice-add 'org-get-tags :around #'org-drill-get-tags-advice)) (defun org-drill-get-tags-advice (orig-fun &rest args) @@ -715,7 +714,7 @@ regardless of whether the test was successful.") (if (fboundp 'org-get-local-tags) (org-get-local-tags)) (funcall orig-fun))) -(when org-drill-org-8-p +(when (= 8 (car (version-to-list org-version))) (defun org-toggle-latex-fragment (&rest args) (apply 'org-preview-latex-fragment args))) |
