From b431634c3ebe4998587d5a1a1f073d52ae5e2220 Mon Sep 17 00:00:00 2001 From: eeeickythump Date: Wed, 9 Mar 2011 10:31:00 +1300 Subject: 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 760256f..945f730 100644 --- a/org-drill.el +++ b/org-drill.el @@ -1,7 +1,7 @@ ;;; org-drill.el - Self-testing with org-learn ;;; ;;; Author: Paul Sexton -;;; 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) -- cgit v1.2.3