From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: [PATCH] org-closest-date: Don't accept canceled repeater Date: Mon, 13 Jul 2015 11:06:59 -0400 Message-ID: <87wpy4nlkc.fsf@kyleam.com> References: <87380viemx.fsf@kmlap.domain.org> <87mvz01icw.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfK4-0001NE-0N for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 11:07:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEfK0-00018r-4K for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 11:07:11 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:33080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfK0-000173-1N for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 11:07:08 -0400 Received: by qkdl129 with SMTP id l129so13475643qkd.0 for ; Mon, 13 Jul 2015 08:07:06 -0700 (PDT) In-Reply-To: <87mvz01icw.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 13 Jul 2015 12:07:11 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hi Rasmus, Rasmus wrote: [...] > I'm happy to push your commit, but I don't really know what you mean by > canceled repeater. Since you are the expert, would you mind posting an > example of a document with the error you fix? Sorry, I should have included an example. If I have a heading that looks like ** TODO h DEADLINE: <2015-07-13 Mon +3w> and I run org-todo with a numeric prefix of -1, the repeater is canceled by changing it to +0w: ** DONE h CLOSED: [2015-07-13 Mon 10:47] DEADLINE: <2015-07-13 Mon +0w> If I call org-agenda-list on a file with an entry like above, I get an arith-error from +0w being passed to org-closest-date. -- Kyle expert of +0