[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 0e89d9a638 134/251: Remove more variables
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 0e89d9a638 134/251: Remove more variables |
Date: |
Mon, 17 Jan 2022 18:59:09 -0500 (EST) |
branch: elpa/org-drill
commit 0e89d9a638fc7967714d50be17a7ebcc31012fd1
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Remove more variables
---
org-drill.el | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 6cdb85045f..0b4d5c98da 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -608,16 +608,15 @@ to preserve the formatting in a displayed table, for
example."
:type float)
(new-entries :initform nil)
(dormant-entry-count :initform 0)
+ (due-entry-count :initform 0)
+ (overdue-entry-count :initform 0)
+ (due-tomorrow-count :initform 0)
)
:documentation "An org-drill session object carries data about
the current state of a particular org-drill session." )
(defvar org-drill-last-session nil)
-
-(defvar *org-drill-due-entry-count* 0)
-(defvar *org-drill-overdue-entry-count* 0)
-(defvar *org-drill-due-tomorrow-count* 0)
(defvar *org-drill-overdue-entries* nil
"List of markers for items that are considered 'overdue', based on
the value of ORG-DRILL-OVERDUE-INTERVAL-FACTOR.")
@@ -2777,7 +2776,7 @@ Session finished. Press a key to continue..."
(format "%d old"
(length *org-drill-old-mature-entries*))
'face `(:foreground ,org-drill-mature-count-color))
- *org-drill-due-tomorrow-count*
+ (oref session due-tomorrow-count)
))
(while (not (input-pending-p))
@@ -2799,10 +2798,10 @@ lowering the value of `org-drill-learn-fraction'
slightly in
order to make items appear more frequently over time."
(propertize "WARNING!" 'face 'org-warning)
(- 100 pass-percent)
- *org-drill-overdue-entry-count*
- (round (* 100 *org-drill-overdue-entry-count*)
+ (oref session overdue-entry-count)
+ (round (* 100 (oref session overdue-entry-count))
(+ (oref session dormant-entry-count)
- *org-drill-due-entry-count*)))
+ (oref session due-entry-count))))
))))
@@ -2962,7 +2961,7 @@ STATUS is one of the following values:
(:future
(cl-incf (oref session dormant-entry-count))
(if (eq -1 due)
- (cl-incf *org-drill-due-tomorrow-count*)))
+ (cl-incf (oref session due-tomorrow-count))))
(:new
(push (point-marker) (oref session new-entries)))
(:failed
@@ -3045,9 +3044,9 @@ work correctly with older versions of org mode. Your org
mode version (%s) appea
(setf *org-drill-current-item* nil
*org-drill-done-entries* nil
(oref session dormant-entry-count) 0
- *org-drill-due-entry-count* 0
- *org-drill-due-tomorrow-count* 0
- *org-drill-overdue-entry-count* 0
+ (oref session due-entry-count) 0
+ (oref session due-tomorrow-count) 0
+ (oref session overdue-entry-count) 0
(oref session new-entries) nil
*org-drill-overdue-entries* nil
*org-drill-young-mature-entries* nil
@@ -3065,9 +3064,9 @@ work correctly with older versions of org mode. Your org
mode version (%s) appea
'org-map-drill-entry-function
scope drill-match)
(org-drill-order-overdue-entries overdue-data)
- (setq *org-drill-overdue-entry-count*
+ (setf (oref session overdue-entry-count)
(length *org-drill-overdue-entries*))))
- (setq *org-drill-due-entry-count*
+ (setf (oref session due-entry-count)
(org-drill-pending-entry-count session))
(cond
((and (null *org-drill-current-item*)
- [nongnu] elpa/org-drill 9c86731452 086/251: During drills, pressing keys for quit, edit and skip now works again., (continued)
- [nongnu] elpa/org-drill 9c86731452 086/251: During drills, pressing keys for quit, edit and skip now works again., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill fa03aa7696 087/251: Added tag 2.4.8 for changeset 080a526cc34a, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a9d3447041 101/251: Reinstated dependency on 'org-learn' library., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 562baba885 102/251: Added tag 2.6.1 for changeset 586920548547, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d9ffa4b91f 104/251: Add support for typing in buffer input, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 45e92eca74 109/251: Add org-drill-cram-tree function, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ef79a22735 111/251: Add explain support, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ef9bad812c 112/251: Explain tags now inherit, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 6959903b99 113/251: Explain status of fork, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 507daae5a2 128/251: Remove org-drill-session-qualities, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0e89d9a638 134/251: Remove more variables,
ELPA Syncer <=
- [nongnu] elpa/org-drill a803289de9 137/251: Remove last of earmuff variables, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill df13d89a4c 119/251: Add interactive test functions, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d37519f54c 147/251: Clean up robot testing, ELPA Syncer, 2022/01/17
- [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