branch: elpa/org-drill
commit b431634c3ebe4998587d5a1a1f073d52ae5e2220
Author: eeeickythump <devnull@localhost>
Commit: eeeickythump <devnull@localhost>
Bug fix: when drill sessions span more than one file, display items in the
other files correctly.
(Previously the only items which worked correctly were those in the
buffer/file where org-drill was invoked.)
---
org-drill.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 760256f8db..945f730d32 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -1,7 +1,7 @@
;;; org-drill.el - Self-testing with org-learn
;;;
;;; Author: Paul Sexton <[email protected]>
-;;; Version: 1.5
+;;; Version: 1.6
;;; Repository at http://bitbucket.org/eeeickythump/org-drill/
;;;
;;;
@@ -986,7 +986,7 @@ maximum number of items."
(unless m
(error "Unexpectedly ran out of pending drill items"))
(save-excursion
- (set-buffer (marker-buffer m))
+ (switch-to-buffer (marker-buffer m))
(goto-char m)
(setq result (org-drill-entry))
(cond
@@ -997,7 +997,7 @@ maximum number of items."
(setq end-pos (point-marker))
(return-from org-drill-entries nil))
((eql result 'skip)
- nil) ; skip this item
+ nil) ; skip this item
(t
(cond
((<= result org-drill-failure-quality)