aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2019-06-25 12:25:22 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2019-06-25 12:25:22 +0100
commit9f9e5e71701c5506da03124cb9867be2f87b7128 (patch)
treec46fa44328477f8b0f682dfb3f281c7121317dce
parent2f056255e66103b89201e81ad208cb47aaef2823 (diff)
downloadorg-drill-9f9e5e71701c5506da03124cb9867be2f87b7128.tar.gz
org-drill-9f9e5e71701c5506da03124cb9867be2f87b7128.zip
Renamespace all macros
-rw-r--r--org-drill.el36
1 files changed, 18 insertions, 18 deletions
diff --git a/org-drill.el b/org-drill.el
index 4813f53..f2ca5bb 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -791,7 +791,7 @@ CMD is bound, or nil if it is not bound to a key."
(org-drill-unhide-clozed-text))))
-(defmacro with-hidden-cloze-hints (&rest body)
+(defmacro org-drill-with-hidden-cloze-hints (&rest body)
(declare (debug t))
`(progn
(org-drill-hide-cloze-hints)
@@ -801,7 +801,7 @@ CMD is bound, or nil if it is not bound to a key."
(org-drill-unhide-text))))
-(defmacro with-hidden-comments (&rest body)
+(defmacro org-drill-with-hidden-comments (&rest body)
`(progn
(if org-drill-hide-item-headings-p
(org-drill-hide-heading-at-point))
@@ -2091,8 +2091,8 @@ Note: does not actually alter the item."
(defun org-drill-present-simple-card (session)
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
(org-drill-hide-all-subheadings-except nil)
(org-drill--show-latex-fragments) ; overlay all LaTeX fragments with images
@@ -2117,13 +2117,13 @@ Note: does not actually alter the item."
(ignore-errors
(org-display-inline-images t))
(org-cycle-hide-drawers 'all)
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-cloze-hints
(funcall reschedule-fn session))))))
(defun org-drill-present-simple-card-with-typed-answer (session)
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
(org-drill-hide-all-subheadings-except nil)
(org-drill--show-latex-fragments) ; overlay all LaTeX fragments with images
@@ -2140,8 +2140,8 @@ Note: does not actually alter the item."
(defun org-drill-present-two-sided-card (session)
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
(let ((drill-sections (org-drill-hide-all-subheadings-except nil)))
(when drill-sections
@@ -2159,8 +2159,8 @@ Note: does not actually alter the item."
(defun org-drill-present-multi-sided-card (session)
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
(let ((drill-sections (org-drill-hide-all-subheadings-except nil)))
(when drill-sections
@@ -2192,8 +2192,8 @@ If FORCE-SHOW-LAST is non-nil, never hide the last piece of text.
If the number of text pieces in the item is less than
NUMBER-TO-HIDE, then all text pieces will be hidden (except the first or last
items if FORCE-SHOW-FIRST or FORCE-SHOW-LAST is non-nil)."
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(let ((item-end nil)
(match-count 0)
(body-start (or (cdr (org-get-property-block))
@@ -2264,8 +2264,8 @@ items if FORCE-SHOW-FIRST or FORCE-SHOW-LAST is non-nil)."
"Hide the TO-HIDE'th piece of clozed text. 1 is the first piece. If
TO-HIDE is negative, count backwards, so -1 means the last item, -2
the second to last, etc."
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(let ((item-end nil)
(match-count 0)
(body-start (or (cdr (org-get-property-block))
@@ -2434,7 +2434,7 @@ pieces rather than one."
"Present the string QUESTION as the only visible content of the card.
If ANSWER is supplied, set the session slot `drill-answer' to its value."
(if answer (setf (oref session drill-answer) answer))
- (with-hidden-comments
+ (org-drill-with-hidden-comments
(with-replaced-entry-text
(concat "\n" question)
(org-drill-hide-all-subheadings-except nil)
@@ -3569,8 +3569,8 @@ returns its return value."
(defun org-drill-present-spanish-verb (session)
(let ((prompt nil))
- (with-hidden-comments
- (with-hidden-cloze-hints
+ (org-drill-with-hidden-comments
+ (org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
(cl-case (cl-random 6)
;; PWL 2018-06-22