diff options
| author | eeeickythump <devnull@localhost> | 2011-03-09 10:31:00 +1300 |
|---|---|---|
| committer | eeeickythump <devnull@localhost> | 2011-03-09 10:31:00 +1300 |
| commit | b431634c3ebe4998587d5a1a1f073d52ae5e2220 (patch) | |
| tree | 4a60e54c13272e125ba5192b246e747c5144616f /org-drill.el | |
| parent | 5ebfe9c7171bc3c967151903be6d6c9d9c1100f7 (diff) | |
| download | org-drill-1.6.tar.gz org-drill-1.6.zip | |
Bug fix: when drill sessions span more than one file, display items in the other files correctly.1.6
(Previously the only items which worked correctly were those in the buffer/file where org-drill was invoked.)
Diffstat (limited to 'org-drill.el')
| -rw-r--r-- | org-drill.el | 6 |
1 files 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 <eeeickythump@gmail.com> -;;; 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) |
