* [Bug] org-drill leeches
@ 2015-01-13 9:10 Marco Wahl
0 siblings, 0 replies; only message in thread
From: Marco Wahl @ 2015-01-13 9:10 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Paul Sexton
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-13 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 9:10 [Bug] org-drill leeches Marco Wahl
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).