From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Make today's deadlines "close" without lead time Date: Thu, 02 Jun 2016 10:12:06 +0200 Message-ID: <87d1o09fhl.fsf@saiph.selenimh> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Njm-0006ai-Up for emacs-orgmode@gnu.org; Thu, 02 Jun 2016 04:12:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8Njk-00081n-Rb for emacs-orgmode@gnu.org; Thu, 02 Jun 2016 04:12:17 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:48964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Njk-00081a-LR for emacs-orgmode@gnu.org; Thu, 02 Jun 2016 04:12:16 -0400 In-Reply-To: (Don March's message of "Wed, 1 Jun 2016 01:57:55 -0400") 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" To: Don March Cc: emacs-orgmode@gnu.org Hello, Don March writes: > This patch makes a very small change to the function that determines if a > timestamp is close to the current day, which is used for showing/hiding items in > agenda views. > > Under current behavior, a deadline of today is close only if it has some amount > of lead time. If your date is 2016-06-01, the following statements evaluate to > nil: > #+BEGIN_SRC emacs-lisp > (org-deadline-close "2016-06-01 Wed -0d") ;; but this is today! > (org-deadline-close "2016-06-02 Wed -1d") > #+END_SRC > > One effect of this is that if you set =org-agenda-todo-ignore-deadlines= to > =far= and generate the TODO list agenda view (C-c a t), then items only appear > if you are one day past the point at which they should appear. For example, the > following item does not show up in my current TODO list: > #+BEGIN_EXAMPLE > * TODO due today, no lead time > DEADLINE: <2016-06-01 -0d> > #+END_EXAMPLE Thank you for the patch. Did you sign FSF papers? Otherwise, a TINYCHANGE cookie is needed at the end of the commit message. Also, would you mind providing a few tests for this function, in "test-org.el"? Regards, -- Nicolas Goaziou