[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [Bug] org-drill leeches
From: |
Marco Wahl |
Subject: |
[O] [Bug] org-drill leeches |
Date: |
Tue, 13 Jan 2015 10:10:18 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Hi group and Paul,
some of my drill items have become tagged as leech. This causes the
next drill session to fail.
I fixed this like so:
#v+
1 file changed, 1 insertion(+), 1 deletion(-)
contrib/lisp/org-drill.el | 2 +-
Modified contrib/lisp/org-drill.el
diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el
index 93c37e3..2fe6243 100644
--- a/contrib/lisp/org-drill.el
+++ b/contrib/lisp/org-drill.el
@@ -2439,7 +2439,7 @@ that many days)."
(timestamp
(- (org-time-stamp-to-now timestamp)))
(use-last-interval-p
- (+ (org-drill-entry-days-overdue)
+ (+ (or (org-drill-entry-days-overdue) 0)
(read (or (org-entry-get (point) "DRILL_LAST_INTERVAL") "0"))))
(t nil))))
#v-
On the code level the bug occurs when '(org-drill-entry-days-overdue)'
returns nil.
I'm not sure if this is a sane fix. Could you give it a glance, please?
Best regards, Marco
--
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] [Bug] org-drill leeches,
Marco Wahl <=