emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Bug: org-auto-repeat-maybe only updates first timestamp [7


From: Matt Lundin
Subject: [Orgmode] Re: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]
Date: Fri, 17 Sep 2010 22:39:16 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

"Andrew J. Korty" <address@hidden> writes:

> Matt Lundin <address@hidden> wrote:
>
>> "Andrew J. Korty" <address@hidden> writes:
>>
>> > Matt Lundin <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]