From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bradd Subject: org-agenda-skip-function does not find inherited tags Date: Mon, 4 Sep 2017 11:06:40 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c124f703e0b3a05585e75e8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dosyS-00081x-0b for emacs-orgmode@gnu.org; Mon, 04 Sep 2017 11:08:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dosxX-0006dF-Ku for emacs-orgmode@gnu.org; Mon, 04 Sep 2017 11:07:40 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:35536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dosxX-0006c3-Cg for emacs-orgmode@gnu.org; Mon, 04 Sep 2017 11:06:43 -0400 Received: by mail-pg0-x22b.google.com with SMTP id d5so2035049pgf.2 for ; Mon, 04 Sep 2017 08:06:42 -0700 (PDT) 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: emacs-orgmode@gnu.org --94eb2c124f703e0b3a05585e75e8 Content-Type: text/plain; charset="UTF-8" Hello, I have the following custom agenda command: (setq org-agenda-custom-commands '(("ww" "Work 2 day view" ((agenda "" ((org-agenda-files '("~/tmp/tmp.org")) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":@work:")) (org-agenda-start-on-weekday nil) (org-agenda-span 2) (org-agenda-overriding-header "\n2 day work view\n-----------------\n"))))))) Given the sample file below: * Top heading with tags :@work:admin: ** Next heading (inherited tags) SCHEDULED: <2017-09-04 Mon> ** Next heading (explicit tags) :@work:admin: SCHEDULED: <2017-09-04 Mon> The agenda will only display headings that have the tag explicitly defined. In this case, "Next heading (explicit tags)". Is there a way I can convince the agenda to honour inherited tags in this case? Cheers, Adrian --94eb2c124f703e0b3a05585e75e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have the following custom agen= da command:

(setq org-agenda-custom-commands<= /div>
=C2=A0 =C2=A0 =C2=A0 '(("ww" "Work 2 day view&= quot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((agenda ""
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-files '(&q= uot;~/tmp/tmp.org"))<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-skip-functi= on '(org-agenda-skip-entry-if 'notregexp ":@work:"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-start-on-weekda= y nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-span= 2)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-overrid= ing-header "\n2 day work view\n-----------------\n")))))))

Given the sample file below:

* Top heading with tags =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :@work:admin:
** Next heading (in= herited tags)
=C2=A0 =C2=A0SCHEDULED: <2017-09-04 Mon>
** Next heading (explicit tags) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 :@work:admin:
=C2=A0 =C2=A0SCHEDULED: <2017-09-04 Mon><= /div>

The agenda will only display headings that h= ave the tag explicitly defined. In this case, "Next heading (explicit = tags)".

Is there a way I can convince the age= nda to honour inherited tags in this case?

Cheers,=

Adrian


--94eb2c124f703e0b3a05585e75e8--