From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: [Bug] org-drill leeches Date: Tue, 13 Jan 2015 10:10:18 +0100 Message-ID: <84mw5nm4g5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAxUf-0003lz-VS for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 04:10:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAxUa-0007OI-Su for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 04:10:33 -0500 Received: from plane.gmane.org ([80.91.229.3]:48471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAxUa-0007O6-LT for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 04:10:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YAxUZ-00056h-BP for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 10:10:27 +0100 Received: from stgt-5f701fde.pool.mediaways.net ([95.112.31.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Jan 2015 10:10:27 +0100 Received: from marcowahlsoft by stgt-5f701fde.pool.mediaways.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Jan 2015 10:10:27 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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