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


Reply via email to