diff options
| author | Phillip Lord <phillip.lord@newcastle.ac.uk> | 2019-12-19 21:00:36 +0000 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@newcastle.ac.uk> | 2019-12-19 21:00:36 +0000 |
| commit | 372525814de854c35cddd4d727a8ec38c650064d (patch) | |
| tree | 95091158e9f094515e4b4090772a45047942e93c | |
| parent | a6a93090e28196c4f77a9a1b64b9a789731fe244 (diff) | |
| parent | e192da7806318ad83d8133cfbe6625e77da907df (diff) | |
| download | org-drill-372525814de854c35cddd4d727a8ec38c650064d.tar.gz org-drill-372525814de854c35cddd4d727a8ec38c650064d.zip | |
Merge branch 'fix/latex-overlays' into 'master'
Show LaTex overlays after clearing them
See merge request phillord/org-drill!7
| -rw-r--r-- | org-drill.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/org-drill.el b/org-drill.el index 1f357af..2087771 100644 --- a/org-drill.el +++ b/org-drill.el @@ -2053,6 +2053,13 @@ RESCHEDULE-FN is the function to reschedule." (ignore-errors (org-display-inline-images t)) (org-cycle-hide-drawers 'all) + (org-remove-latex-fragment-image-overlays) + (save-excursion + (org-mark-subtree) + (let ((beg (region-beginning)) + (end (region-end))) + (org--latex-preview-region beg end)) + (deactivate-mark)) (org-drill-with-hidden-cloze-hints (funcall reschedule-fn session)))))) @@ -2413,7 +2420,7 @@ See `org-drill' for more details." (rtn (cond ((null presentation-fn) - (message "%s:%d: Unrecognised card type '%s', skipping..." + (message "%s:%d: Unrecognised card type '%s', skipping..." (buffer-name) (point) card-type) (sit-for 0.5) 'skip) @@ -2440,7 +2447,6 @@ See `org-drill' for more details." (apply-partially 'org-drill-card-tag-caller 3) tags) (cl-incf org-drill-cards-in-this-emacs) - (org-remove-latex-fragment-image-overlays) rtn)))))) (defun org-drill-entries-pending-p (session) |
