From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans] Date: Fri, 17 Sep 2010 22:39:16 -0400 Message-ID: <878w2zvkq3.fsf@fastmail.fm> References: <24331.1284476463@iu.edu> <878w32c8rq.fsf@gollum.intra.norang.ca> <40096.1284649125@iu.edu> <40246.1284650926@iu.edu> <87iq244kq6.fsf@fastmail.fm> <46075.1284727718@iu.edu> <87mxrgw6l5.fsf@fastmail.fm> <60432.1284759285@iu.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=57536 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwnKh-0005P8-Ur for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwnKg-0005fh-Hm for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:39:19 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:44458) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwnKg-0005fb-DK for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:39:18 -0400 In-Reply-To: <60432.1284759285@iu.edu> (Andrew J. Korty's message of "Fri, 17 Sep 2010 17:34:45 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Andrew J. Korty" Cc: emacs-orgmode@gnu.org "Andrew J. Korty" writes: > Matt Lundin wrote: > >> "Andrew J. Korty" writes: >> >> > Matt Lundin wrote: >> > >> >> --8<---------------cut here---------------start------------->8--- >> >> * TODO Review really important document >> >> DEADLINE: <2010-10-31 Sun -2m> >> >> * TODO Review less important document >> >> DEADLINE: <2010-10-31 Sun> >> >> --8<---------------cut here---------------end--------------->8--- >> >> >> >> Let's assume the following settings: >> >> >> >> --8<---------------cut here---------------start------------->8--- >> >> (setq org-agenda-todo-ignore-deadlines 'far >> >> org-deadline-warning-days 14) >> >> --8<---------------cut here---------------end--------------->8--- >> >> >> >> With these settings, the first task would show up *today* both in your >> >> agenda and in your TODO list, while the second task would appear in both >> >> places two weeks before the deadline. >> > >> > Right, but what I want is for the second task to appear in the todo >> > list even before two weeks before the deadline, and I don't want it to >> > appear in the agenda until two weeks before the deadline. In other >> > words, I always want to see tasks I can do now in my todo lists, >> > whereas I only want to see tasks that are due soon in the agenda. >> > Lengthening the lead time won't help because it unnecessarily shows >> > tasks in the agenda that aren't due soon. >> > >> > But maybe my usage is not an intended one. >> >> Oops. I misunderstood your request. >> >> What you are describing is org-mode's default behavior---i.e., to show >> all todos with deadlines in the todo list, but only to show deadlines in >> the agenda when they are within org-deadline-warning days. >> >> To ensure this behavior, you'll want to make sure that >> org-agenda-todo-ignore-deadlines is set to nil (the default). All todos >> with deadlines will then appear in your todo list. > > True, but then we're back to the problem with the driver's license > renewal. > I knew there was a reason for example I provided above. :) If I understand you correctly, you'd like: 1) deadlines to show up on your todo list, 2) but not if they are too far away (let's say more than 1 year from now). I believe this scenario is essentially covered by the original example I provided; all that is required is some tweaking. Does this custom command accomplish what you're looking for? --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("d" "Todos (incl. deadlines)" todo "" ((org-deadline-warning-days 100) ;; change this as you wish (org-agenda-todo-ignore-deadlines 'far)))) --8<---------------cut here---------------end--------------->8--- With this command, you'd see all todos with deadlines that fall a reasonable distance from the present (in this case, the next 100 days), but wouldn't see the drivers license renewal 4 years from now. Best, Matt