emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: "Andrew J. Korty" <ajk@iu.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]
Date: Fri, 17 Sep 2010 22:39:16 -0400	[thread overview]
Message-ID: <878w2zvkq3.fsf@fastmail.fm> (raw)
In-Reply-To: <60432.1284759285@iu.edu> (Andrew J. Korty's message of "Fri, 17 Sep 2010 17:34:45 -0400")

"Andrew J. Korty" <ajk@iu.edu> writes:

> Matt Lundin <mdl@imapmail.org> wrote:
>
>> "Andrew J. Korty" <ajk@iu.edu> writes:
>>
>> > Matt Lundin <mdl@imapmail.org> 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	other threads:[~2010-09-18  2:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-14 15:01 Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans] Andrew J. Korty
2010-09-16  9:55 ` Bernt Hansen
2010-09-16 14:58   ` Andrew J. Korty
2010-09-16 15:28     ` Andrew J. Korty
2010-09-17 12:29       ` Matt Lundin
2010-09-17 12:48         ` Andrew J. Korty
2010-09-17 18:47           ` Matt Lundin
2010-09-17 21:34             ` Andrew J. Korty
2010-09-18  2:39               ` Matt Lundin [this message]
2010-09-18 13:08                 ` Andrew J. Korty
2010-09-17 12:05 ` Matt Lundin
2010-09-17 12:43   ` Andrew J. Korty

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=878w2zvkq3.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=ajk@iu.edu \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).