emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Filter scheduled items
Date: Thu, 30 Sep 2010 12:58:27 -0400	[thread overview]
Message-ID: <87r5gb418s.fsf@fastmail.fm> (raw)
In-Reply-To: <AANLkTinsmYxHRzZ1FaHGcUq1RZ6jZ+v7nci+-S2Uw_-W@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Wed, 29 Sep 2010 22:27:42 -0500")

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> Hmm, org actually does this already.
>
> The problem is that I was filtering by TODO items, and the scheduled
> item was the parent of two TODO items (A non-TODO item tagged as
> PROJECT).
>
> So now I guess the question is:
> Can I make sub-items inherit the schedule information?

Yes, by using org-use-property-inheritance. This works when doing a
property search, so you'll have to use tags-todo.

Does this custom command accomplish what you are looking for?

--8<---------------cut here---------------start------------->8---
(add-to-list 'org-agenda-custom-commands
	     ;; a todo list with no future items and inherited scheduling info
	     '("x" "No future items" tags-todo "+SCHEDULED<=\"<today>\"/!+TODO"
	       ((org-use-property-inheritance '("SCHEDULED")))))
--8<---------------cut here---------------end--------------->8---

Best,
Matt

  parent reply	other threads:[~2010-09-30 16:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30  0:16 Filter scheduled items Marcelo de Moraes Serpa
2010-09-30  3:27 ` Marcelo de Moraes Serpa
2010-09-30 14:26   ` Jeff Horn
2010-09-30 16:58   ` Matt Lundin [this message]
2010-09-30 17:05     ` Marcelo de Moraes Serpa
2010-10-01 12:34       ` Jeff Horn
2010-10-01 16:19         ` Matt Lundin
2010-10-01 18:45           ` Jeff Horn

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=87r5gb418s.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=celoserpa@gmail.com \
    --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).