From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Agenda view: do not display tasks of projects scheduled in the future Date: Wed, 18 Dec 2013 15:26:24 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtI53-0002Ae-8r for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 09:26:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtI4v-00036Y-Va for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 09:26:33 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:47695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtI4v-00036S-On for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 09:26:25 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hello, I would like to tweak my agenda views such that tasks belonging to projects scheduled in the future are not shown. I've searched a bit about this and I found out that deadlines and schedules are not inherited, so that approach would not work. I'm thus trying to tweak a custom skip function to jump over any headline scheduled for the future. I looked into org.el but could not find a way to write a predicate "org-entry-scheduled-in-future-p" that is true when an entry is scheduled in the future. I would use it for the following skipping command: #+BEGIN_SRC emacs-lisp (defun as/skip-future-tasks () "Skip future tasks" (save-restriction (widen) (let ((subtree-end (save-excursion (org-end-of-subtree t)))) (cond ((org-entry-scheduded-in-future-p) subtree-end) (t nil))))) #+END_SRC Any suggestion as how I might write such a predicate? Thanks, Alan