aboutsummaryrefslogtreecommitdiff
path: root/org-drill.el
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2019-06-30 18:31:47 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2019-06-30 18:31:47 +0100
commita91c6101b9d81d1e19af6fb8edfbfdff3bd2b876 (patch)
tree9375d75b05c0ba5fb4f5bbbd799ded98878399cf /org-drill.el
parentd1d7fde5e3ca21250e2c5752583f154995d55242 (diff)
downloadorg-drill-a91c6101b9d81d1e19af6fb8edfbfdff3bd2b876.tar.gz
org-drill-a91c6101b9d81d1e19af6fb8edfbfdff3bd2b876.zip
Update variable documentation
Diffstat (limited to 'org-drill.el')
-rw-r--r--org-drill.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/org-drill.el b/org-drill.el
index 497a37e..293d7f2 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -228,6 +228,7 @@ rest of the expression after the string is a `hint', to be displayed instead of
the hidden cloze during a test.")
(defun org-drill--compute-cloze-regexp ()
+ "Returns a regexp that detects clozes."
(concat "\\("
(regexp-quote org-drill-left-cloze-delimiter)
"[[:cntrl:][:graph:][:space:]]+?\\)\\(\\|"
@@ -237,17 +238,23 @@ the hidden cloze during a test.")
"\\)"))
(defun org-drill--compute-cloze-keywords ()
+ "Returns a fontification spec that detects cloze keywords."
(list (list (org-drill--compute-cloze-regexp)
(cl-copy-list '(1 'org-drill-visible-cloze-face nil))
(cl-copy-list '(2 'org-drill-visible-cloze-hint-face t))
- (cl-copy-list '(3 'org-drill-visible-cloze-face nil))
- )))
+ (cl-copy-list '(3 'org-drill-visible-cloze-face nil)))))
(defvar-local org-drill-cloze-regexp
- (org-drill--compute-cloze-regexp))
+ (org-drill--compute-cloze-regexp)
+ "Regexp that detects cloze.
+
+This is buffer-local variable.")
(defvar-local org-drill-cloze-keywords
- (org-drill--compute-cloze-keywords))
+ (org-drill--compute-cloze-keywords)
+ "Fontification form for cloze.
+
+This is a buffer-local variable.")
;; Variables defining what keys can be pressed during drill sessions to quit the
;; session, edit the item, etc.