From 371b0cf9aa57428168f22f3005652b3b97c51c8b Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Mon, 26 Dec 2011 15:40:02 +0100 Subject: [PATCH] org-drill.el: fix a few wrong :type spec. * org-drill.el (org-drill-leech-method, org-drill-scope) (org-drill-spaced-repetition-algorithm): Fix wrong :type spec. Thanks to Joost Kremers for spotting this. --- contrib/lisp/org-drill.el | 62 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el index 5e8957063..b0223597a 100644 --- a/contrib/lisp/org-drill.el +++ b/contrib/lisp/org-drill.el @@ -1,28 +1,28 @@ -;;; -*- coding: utf-8-unix -*- -;;; org-drill.el - Self-testing using spaced repetition -;;; -;;; Author: Paul Sexton -;;; Version: 2.3.5 -;;; Repository at http://bitbucket.org/eeeickythump/org-drill/ -;;; -;;; -;;; Synopsis -;;; ======== -;;; -;;; Uses the SuperMemo spaced repetition algorithms to conduct interactive -;;; "drill sessions", where the material to be remembered is presented to the -;;; student in random order. The student rates his or her recall of each item, -;;; and this information is used to schedule the item for later revision. -;;; -;;; Each drill session can be restricted to topics in the current buffer -;;; (default), one or several files, all agenda files, or a subtree. A single -;;; topic can also be drilled. -;;; -;;; Different "card types" can be defined, which present their information to -;;; the student in different ways. -;;; -;;; See the file README.org for more detailed documentation. - +;; -*- coding: utf-8-unix -*- +;; org-drill.el - Self-testing using spaced repetition +;; +;; Author: Paul Sexton +;; Version: 2.3.5 +;; Repository at http://bitbucket.org/eeeickythump/org-drill/ +;; +;; This file is not part of GNU Emacs. +;; +;; Synopsis +;; ======== +;; +;; Uses the SuperMemo spaced repetition algorithms to conduct interactive +;; "drill sessions", where the material to be remembered is presented to the +;; student in random order. The student rates his or her recall of each item, +;; and this information is used to schedule the item for later revision. +;; +;; Each drill session can be restricted to topics in the current buffer +;; (default), one or several files, all agenda files, or a subtree. A single +;; topic can also be drilled. +;; +;; Different "card types" can be defined, which present their information to +;; the student in different ways. +;; +;; See the file README.org in the repository for more detailed documentation. (eval-when-compile (require 'cl)) (eval-when-compile (require 'hi-lock)) @@ -37,7 +37,6 @@ :group 'org-link) - (defcustom org-drill-question-tag "drill" "Tag which topics must possess in order to be identified as review topics @@ -54,7 +53,6 @@ Nil means unlimited." :type '(choice integer (const nil))) - (defcustom org-drill-maximum-duration 20 "Maximum duration of a drill session, in minutes. @@ -107,7 +105,7 @@ Possible values: but a warning message is printed when each leech item is presented." :group 'org-drill - :type '(choice (const 'warn) (const 'skip) (const nil))) + :type '(choice (const warn) (const skip) (const nil))) (defface org-drill-visible-cloze-face @@ -262,9 +260,9 @@ directory All files with the extension '.org' in the same ;; 'file-no-restriction' means current file/buffer, ignoring restrictions ;; 'directory' means all *.org files in current directory :group 'org-drill - :type '(choice (const 'file) (const 'tree) (const 'file-no-restriction) - (const 'file-with-archives) (const 'agenda) - (const 'agenda-with-archives) (const 'directory) + :type '(choice (const file) (const tree) (const file-no-restriction) + (const file-with-archives) (const agenda) + (const agenda-with-archives) (const directory) list)) @@ -290,7 +288,7 @@ Available choices are: adjusting intervals when items are reviewed early or late has been taken from SM11, a later version of the algorithm, and included in Simple8." :group 'org-drill - :type '(choice (const 'sm2) (const 'sm5) (const 'simple8))) + :type '(choice (const sm2) (const sm5) (const simple8))) (defcustom org-drill-optimal-factor-matrix