[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count |
Date: |
Mon, 17 Jan 2022 18:59:09 -0500 (EST) |
branch: elpa/org-drill
commit c1c57adea9cb90261ad9ff621b1ce426fe3b7d6b
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Remove dormant-entry-count
---
org-drill.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 026441e702..6cdb85045f 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -603,17 +603,18 @@ to preserve the formatting in a displayed table, for
example."
(defclass org-drill-session ()
((qualities :initform nil)
- (start-time :initform 0
+ (start-time :initform 0.0
:documentation "Time at which the session started"
- )
+ :type float)
(new-entries :initform nil)
+ (dormant-entry-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-dormant-entry-count* 0)
+
(defvar *org-drill-due-entry-count* 0)
(defvar *org-drill-overdue-entry-count* 0)
(defvar *org-drill-due-tomorrow-count* 0)
@@ -2754,7 +2755,7 @@ Session finished. Press a key to continue..."
org-drill-failure-quality
(org-drill-pending-entry-count session)
(+ (org-drill-pending-entry-count session)
- *org-drill-dormant-entry-count*)
+ (oref session dormant-entry-count))
(propertize
(format "%d failed"
(+ (length *org-drill-failed-entries*)
@@ -2800,7 +2801,7 @@ order to make items appear more frequently over time."
(- 100 pass-percent)
*org-drill-overdue-entry-count*
(round (* 100 *org-drill-overdue-entry-count*)
- (+ *org-drill-dormant-entry-count*
+ (+ (oref session dormant-entry-count)
*org-drill-due-entry-count*)))
))))
@@ -2954,12 +2955,12 @@ STATUS is one of the following values:
(org-drill-entry-status)
(cl-case status
(:unscheduled
- (cl-incf *org-drill-dormant-entry-count*))
+ (cl-incf (oref session dormant-entry-count)))
;; (:tomorrow
;; (cl-incf *org-drill-dormant-entry-count*)
;; (cl-incf *org-drill-due-tomorrow-count*))
(:future
- (cl-incf *org-drill-dormant-entry-count*)
+ (cl-incf (oref session dormant-entry-count))
(if (eq -1 due)
(cl-incf *org-drill-due-tomorrow-count*)))
(:new
@@ -3043,7 +3044,7 @@ work correctly with older versions of org mode. Your org
mode version (%s) appea
(org-drill-free-markers session t)
(setf *org-drill-current-item* nil
*org-drill-done-entries* nil
- *org-drill-dormant-entry-count* 0
+ (oref session dormant-entry-count) 0
*org-drill-due-entry-count* 0
*org-drill-due-tomorrow-count* 0
*org-drill-overdue-entry-count* 0
- [nongnu] elpa/org-drill ef79a22735 111/251: Add explain support, (continued)
- [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, 2022/01/17
- [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 <=
- [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, 2022/01/17
- [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