[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill c49af4a9b3 155/251: Replace more non-namespaced
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill c49af4a9b3 155/251: Replace more non-namespaced commands |
Date: |
Mon, 17 Jan 2022 18:59:11 -0500 (EST) |
branch: elpa/org-drill
commit c49af4a9b3ef4046916337f64d8026132042f3d0
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Replace more non-namespaced commands
---
org-drill.el | 33 ++++++++++++---------------------
1 file changed, 12 insertions(+), 21 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 6ccc7f1a93..6d9e09c1e1 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -742,7 +742,7 @@ CMD is bound, or nil if it is not bound to a key."
(concat "[" (substring (cdr org-time-stamp-formats) 1 -1) "]")
time))
-(defun org-map-drill-entries (func &optional scope drill-match &rest skip)
+(defun org-drill-map-entries (func &optional scope drill-match &rest skip)
"Like `org-map-entries', but only drill entries are processed."
(let ((org-drill-scope (or scope org-drill-scope))
(org-drill-match (or drill-match org-drill-match)))
@@ -999,15 +999,6 @@ from the entry at point."
(sign p)))
100.0))))
-(defun pseudonormal (mean variation)
- "Random numbers in a pseudo-normal distribution with mean MEAN, range
- MEAN-VARIATION to MEAN+VARIATION"
- (+ (cl-random variation)
- (cl-random variation)
- (- variation)
- mean))
-
-
(defun org-drill-early-interval-factor (optimal-factor
optimal-interval
days-ahead)
@@ -1086,7 +1077,7 @@ in the matrix."
;;; SM2 Algorithm =============================================================
-(defun determine-next-interval-sm2 (last-interval n ef quality
+(defun org-drill-determine-next-interval-sm2 (last-interval n ef quality
failures meanq total-repeats)
"Arguments:
- LAST-INTERVAL -- the number of days since the item was last reviewed.
@@ -1372,7 +1363,7 @@ item will be scheduled exactly this many days into the
future."
(sm5 (determine-next-interval-sm5 last-interval repetitions
ease quality failures
meanq total-repeats ofmatrix))
- (sm2 (determine-next-interval-sm2 last-interval repetitions
+ (sm2 (org-drill-determine-next-interval-sm2 last-interval
repetitions
ease quality failures
meanq total-repeats))
(simple8 (determine-next-interval-simple8 last-interval repetitions
@@ -1424,7 +1415,7 @@ of QUALITY."
ease quality failures
meanq total-repeats
org-drill-sm5-optimal-factor-matrix))
- (sm2 (determine-next-interval-sm2 last-interval repetitions
+ (sm2 (org-drill-determine-next-interval-sm2 last-interval
repetitions
ease quality failures
meanq total-repeats))
(simple8 (determine-next-interval-simple8 last-interval repetitions
@@ -3059,7 +3050,7 @@ work correctly with older versions of org mode. Your org
mode version (%s) appea
(save-excursion
(unless resume-p
(let ((org-trust-scanner-tags t))
- (org-map-drill-entries
+ (org-drill-map-entries
(apply-partially #'org-map-drill-entry-function session)
scope drill-match)
(org-drill-order-overdue-entries session)
@@ -3213,9 +3204,9 @@ values as `org-drill-scope'."
;; `org-delete-property-globally', which is faster.
(dolist (prop org-drill-scheduling-properties)
(org-delete-property-globally prop))
- (org-map-drill-entries (lambda () (org-schedule '(4))) scope))
+ (org-drill-map-entries (lambda () (org-schedule '(4))) scope))
(t
- (org-map-drill-entries 'org-drill-strip-entry-data scope)))
+ (org-drill-map-entries 'org-drill-strip-entry-data scope)))
(message "Done.")))
@@ -3267,7 +3258,7 @@ the tag 'imported'."
(org-paste-subtree level)
(org-drill-strip-entry-data)
(org-toggle-tag "imported" 'on)
- (org-map-drill-entries
+ (org-drill-map-entries
(lambda ()
(let ((id (org-id-get)))
(org-drill-strip-entry-data)
@@ -3330,7 +3321,7 @@ copy them across."
;; Compile list of all IDs in the destination buffer.
(clrhash *org-drill-dest-id-table*)
(with-current-buffer dest
- (org-map-drill-entries
+ (org-drill-map-entries
(lambda ()
(let ((this-id (org-id-get)))
(when this-id
@@ -3338,7 +3329,7 @@ copy them across."
'file))
;; Look through all entries in source buffer.
(with-current-buffer src
- (org-map-drill-entries
+ (org-drill-map-entries
(lambda ()
(let ((id (org-id-get))
(last-quality nil) (last-reviewed nil)
@@ -3801,7 +3792,7 @@ Returns a list of strings."
(unless (cl-plusp pending)
(let ((cnt 0)
(end-pos nil))
- (org-map-drill-entries
+ (org-drill-map-entries
(apply-partially 'org-map-drill-entry-function session)
nil nil)))
;; if the overdue entries are not ones we have just created
@@ -4059,7 +4050,7 @@ shuffling is done in place."
(org-drill-leitner-unboxed-entries nil)
(org-drill-leitner-boxed-entries nil))
(org-drill-all-leitner-capture)
- (org-map-drill-entries
+ (org-drill-map-entries
(lambda ()
(setq number-drill-entries (+ 1 number-drill-entries)))
org-drill-scope nil)
- [nongnu] elpa/org-drill 9fa9b6eabf 148/251: Robot test all card types, (continued)
- [nongnu] elpa/org-drill 9fa9b6eabf 148/251: Robot test all card types, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 500d1475c3 120/251: Add count entries test, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a923ba2c90 145/251: Move exit-kind to slot, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9555e487d4 143/251: Fix presentation-in-buffer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0286de5402 139/251: Remove unneed form, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ba0a346583 125/251: Removed generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ffc04493f8 136/251: Remove more variables, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d47080e3bc 121/251: Remove generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill fd3efa233e 127/251: Port to cl-lib, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c49af4a9b3 155/251: Replace more non-namespaced commands,
ELPA Syncer <=
- [nongnu] elpa/org-drill 118e76ff9c 154/251: Replace more non-namespaced command, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 20c90836aa 169/251: Speed up robot tests with polling, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 1801524221 178/251: Fix call to format, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 2f056255e6 192/251: Re-namespace with-hidden-cloze-text, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 61807adc7f 166/251: Remove spell-number.el dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0eaacf2a2d 176/251: Remove legacy code, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 8ebb0d27d6 194/251: package-lint cleaning, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c59c49a4df 172/251: Remove call to cl, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c65634b454 195/251: Remove hi-lock dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5d4f60d49d 167/251: Silence more unused variable messages, ELPA Syncer, 2022/01/17