From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Martins Subject: Re: agenda-custom view with timegrid not showing inherited tags Date: Sat, 5 Sep 2009 21:29:23 -0300 Message-ID: <6ac505ad0909051729m5c595adatf6c4df12ea68324d@mail.gmail.com> References: <6ac505ad0909050636x5596656cl83457da4761a6d91@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0814079871==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mk5dJ-0003vg-9V for emacs-orgmode@gnu.org; Sat, 05 Sep 2009 20:29:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mk5dE-0003kQ-C4 for emacs-orgmode@gnu.org; Sat, 05 Sep 2009 20:29:28 -0400 Received: from [199.232.76.173] (port=53531 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mk5dE-0003k9-95 for emacs-orgmode@gnu.org; Sat, 05 Sep 2009 20:29:24 -0400 Received: from mail-qy0-f196.google.com ([209.85.221.196]:48221) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mk5dD-0001si-UG for emacs-orgmode@gnu.org; Sat, 05 Sep 2009 20:29:24 -0400 Received: by qyk34 with SMTP id 34so1386468qyk.12 for ; Sat, 05 Sep 2009 17:29:23 -0700 (PDT) In-Reply-To: <6ac505ad0909050636x5596656cl83457da4761a6d91@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0814079871== Content-Type: multipart/alternative; boundary=000feaf06d4632938b0472ddd382 --000feaf06d4632938b0472ddd382 Content-Type: text/plain; charset=ISO-8859-1 PROBLEM SOLVED I have found the solution hidden in the list: (org-agenda-filter-preset '("-WEEKLY")) 2009/9/5 Daniel Martins > I want to create a custom agenda view without all my :WEEKLY: tags appts to > focus on extraordinary appointmens on the week. > > I could not do that directly because most :WEEKLY: tags were inherited. > > > I did a hack by eliminating the regexp "\\+1w>" common to all my weekly > todos but combinations with other inherited tags was not possible > > How can I do this in a more elegante way? > > Daniel > > (setq org-agenda-custom-commands > '( > ... > ("l" "cLeaning Weekly" > agenda "" > ((org-agenda-ndays 7) ;; agenda will start in week view > (org-agenda-repeating-timestamp-show-all t) ;; ensures that > repeating events appear on all relevant dates > (org-agenda-log-mode-items '(state)) > (org-agenda-skip-function '(org-agenda-skip-entry-if > 'scheduled 'deadline 'regexp "\\+1w>") > ) > ) > ) > ... > ) > --000feaf06d4632938b0472ddd382 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable PROBLEM SOLVED

I have found the solution hidden in the list:

= =A0=A0=A0 =A0 (org-agenda-filter-preset '("-WEEKLY"))

=
2009/9/5 Daniel Martins <danielemc@gmail.com>
I want to create = a custom agenda view without all my :WEEKLY: tags appts to focus on extraor= dinary appointmens on the week.

I could not do that directly because most :WEEKLY: tags were inherited.=


I did a hack=A0 by eliminating the regexp "\\+1w>"= common to all my weekly todos but combinations with other=A0 inherited tag= s was not possible

How can I do this in a more elegante way?

Daniel

(setq o= rg-agenda-custom-commands
=A0=A0=A0=A0=A0 '(
...
=A0=A0=A0 (&q= uot;l" "cLeaning Weekly"
=A0=A0=A0 =A0agenda ""=
=A0=A0=A0 =A0((org-agenda-ndays 7)=A0=A0=A0=A0=A0=A0=A0=A0=A0 ;; agenda= will start in week view
=A0=A0=A0 =A0 (org-agenda-repeating-timestamp-show-all t)=A0=A0 ;; ensures = that repeating events appear on all relevant dates
=A0=A0=A0 =A0 (org-ag= enda-log-mode-items '(state))
=A0=A0=A0 =A0 (org-agenda-skip-functio= n '(org-agenda-skip-entry-if
=A0=A0=A0 'scheduled 'deadline 'regexp "\\+1w>")=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 )
=A0=A0=A0 =A0 )
= =A0=A0=A0 =A0)
...
)

--000feaf06d4632938b0472ddd382-- --===============0814079871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0814079871==--