all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Paul Sexton <eeeickythump@gmail.com>
Subject: [Bug] org-drill leeches
Date: Tue, 13 Jan 2015 10:10:18 +0100	[thread overview]
Message-ID: <84mw5nm4g5.fsf@gmail.com> (raw)

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	other threads:[~2015-01-13  9:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84mw5nm4g5.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --cc=eeeickythump@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.