From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?RnJhbsOnb2lz?= Allisson Subject: Re: [Assistance Needed] View only prioritized items that have a deadline or or scheduled Date: Wed, 1 Aug 2012 11:23:33 +0200 Message-ID: <20120801092333.GA28370@debian> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwV9T-0005FF-1I for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 05:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwV9S-00027e-38 for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 05:23:34 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwV9R-00027R-S2 for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 05:23:34 -0400 Content-Disposition: inline In-Reply-To: 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: Andre Powell Cc: emacs-orgmode@gnu.org Le mardi 31 jui 2012 =C3=A0 20:48:02 (-0400), Andre Powell a =C3=A9crit : > I was wondering if someone could help me out with the following. I am t= rying to > create a custom agenda view that shows me items that have a priority an= d either > a scheduled date or deadline. This is what I have tried but it does not= seem to > work. >=20 > ("x" "Daily Scheduled Task" tags-todo "+PRIORITY=3D{A\\|B\\|C}" > ((org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote > notscheduled) (quote notdeadline))))))=C2=A0 >=20 >=20 > The ideal situation would be to have task show up =C2=A0that are schedu= led to begin > either today or before today. >=20 >=20 > Thanks in advance for any assistance provided. > -- > Andre >=20 Hi Andre, I can't help you with your tags-todo view. But your ideal situation remembers me more an agenda than a tags-todo view. What about: ;; Custom agenda-views (setq org-agenda-custom-commands '( ;; other custom agenda views ("x" "Daily Scheduled Task" ((agenda ""=20 ((org-agenda-span 1) (org-agenda-entry-types '(:deadline :scheduled)) ;; only deadline and scheduled (org-deadline-warning-days 0) ;; you didn't specified how you wanted your deadline to ;; appear. If only today and overdued items, set 0 as ;; above; if you want to see them 30 days ahead, set 30; etc. ;; By default, scheduled items appear only for today and ;; past days (if todo item not done) (org-agenda-sorting-strategy (quote ((agenda time-up priority-do= wn category-up tag-up)))) ;; Set your sorting strategy ; other options like (org-agenda-time-grid nil), etc. )))) )) This should do /almost/ what you want: It shows only deadline and scheduled items, and you can sort by priority. But there is one thing that I do not understand in your request (I do not use priorities). Do you have items *with* deadline/schedule date *and* no priority, that you don't want to see in your custom agenda view? Can you explain me the idea behind? Because in that case, this would not do the trick. By default, *all* items have a priority of B (see org-default-priority). What you could decide is to redefine the priority set (org-lowest-priority and org-highest-priority) by introducing a priority D, and decide to let org-default-priority be D.=20 Best, Fran=C3=A7ois.