From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Re: Making an agenda that includes scheduled-for-later tasks? Date: Fri, 25 Jan 2019 21:52:06 +0000 Message-ID: References: <87pnsw7ozv.fsf@llwynog.ekleog.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn9Or-0001is-7W for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 16:52:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn9Oo-0005Bq-Up for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 16:52:32 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:51205) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gn9Oh-0004ww-4m for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 16:52:27 -0500 In-Reply-To: <87pnsw7ozv.fsf@llwynog.ekleog.org> 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" To: Leo Gaspard , emacs-orgmode@gnu.org Leo Gaspard writes: > Hello all! > > I am trying to make an agenda view of all tasks that don't have the > :Effort: property set, including tasks that are scheduled for later. > > My init.el files includes the following lines (of interest is the "E" > agenda): > ``` > (setq org-agenda-custom-commands > '(("U" "Unscheduled tasks" > todo '("TODO" "WAITING") > ((org-agenda-overriding-header "Unscheduled tasks") > (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)))) > ("E" "Effortless tasks" > todo '("TODO" "WAITING") > ((org-agenda-overriding-header "Effortless tasks") > (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":Effort:" 'todo '("APPT"))))))) > ``` > > However, for some reason only tasks that are either not scheduled or > scheduled for some time in the past show up in this agenda. Does changing your "E" entry to this help at all? ,---- | (setq org-agenda-custom-commands | '(("U" "Unscheduled tasks" | todo '("TODO" "WAITING") | ((org-agenda-overriding-header "Unscheduled tasks") | (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)))) | ("E" "Effortless tasks" | todo '("TODO" "WAITING") | ((org-agenda-overriding-header "Effortless tasks") | (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":Effort:" 'todo '("APPT"))) | (org-agenda-todo-ignore-scheduled nil) | (org-agenda-todo-ignore-deadlines nil) | (org-agenda-todo-ignore-timestamp nil))))) `---- By the way, the documentation for the `org-agenda-custom-commands' variable says that the third entry should be "a single keyword for TODO keyword searches", so the '("TODO" "WAITING") you have may be partly why things are not working how you expect? You may want to try a compound one like this: ,---- | (setq org-agenda-custom-commands | '(("U" "Unscheduled tasks" | todo '("TODO" "WAITING") | ((org-agenda-overriding-header "Unscheduled tasks") | (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)))) | ("E" "Effortless tasks" | ((todo "TODO") | (todo "WAITING")) | ((org-agenda-overriding-header "Effortless tasks") | (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":Effort:" 'todo '("APPT"))) | (org-agenda-todo-ignore-scheduled nil) | (org-agenda-todo-ignore-deadlines nil) | (org-agenda-todo-ignore-timestamp nil))))) `---- Regards, Stig