From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: org-refile-target-verify-function - use inherited tag & todo Date: Sun, 27 Oct 2019 15:03:42 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f26f190595e9e1dd" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50767) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOola-0007W9-V3 for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 16:04:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOolY-00059Q-Lq for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 16:03:58 -0400 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:41568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOolY-00058i-9G for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 16:03:56 -0400 Received: by mail-io1-xd2a.google.com with SMTP id r144so8156501iod.8 for ; Sun, 27 Oct 2019 13:03:55 -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 --000000000000f26f190595e9e1dd Content-Type: text/plain; charset="UTF-8" Hi all, I want to filter my refile targets to "Tasks" headings. This snippet works: https://lists.gnu.org/r/emacs-orgmode/2016-02/msg00088.html There's a few things I'd like to improve on: 1) My org-agenda-files show up in the list. For example, foo.org and bar.org show up in the refile targets, despite the function should return nil if a heading does not contain "Tasks" 2) I would like to limit the "Task" headings to those that have a parent heading with a tag :project: I have :project: tag as exclude-from-inheritance, so this might be tricky 3) I would like the parent heading with :project: tag to have a TODO state that is not "done" and is not "cancelled". Can anyone help me improve on this? I think I'm missing some really easy documentation / examples. As an aside, is there a definitive "Org Mode API" doc that shows the functions that would assist me in writing a function to perform the above filtering? Something like a Javadoc for Org-Mode? There's great articles, etc. but I think it would be cool to have a "public" API defined / documented - otherwise it seems that I'm simply going through existing blogs, documentation etc and of course the source code. When going through source code, there's many functions that are named similarly and yes there's docs but I found myself wanting some kind of Javadoc-ish API documentation :) Thanks, --Nate --000000000000f26f190595e9e1dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all, I want to filter my refile target= s to "Tasks" headings.=C2=A0 This snippet works:
https://lists.gnu.org/r/emacs-orgmode/2016-02/msg00088.html

There's a few things I'd like to i= mprove on:

1) My org-agenda-files show up in the l= ist.=C2=A0 For example, foo.org and bar.org show up in the refile targets, despite the = function should return nil if a heading does not contain "Tasks"<= /div>

2) I would like to limit the "Task" head= ings to those that have a parent heading with a tag :project:
I h= ave :project: tag as exclude-from-inheritance, so this might be tricky

3) I would like the parent heading with :project: tag = to have a TODO state that is not "done" and is not "cancelle= d".

Can anyone help me improve on this?=C2=A0= I think I'm missing some really easy documentation / examples.=C2=A0 A= s an aside, is there a definitive "Org Mode API" doc that shows t= he functions that would assist me in writing a function to perform the abov= e filtering?=C2=A0 Something like a Javadoc for Org-Mode?=C2=A0 There's= great articles, etc. but I think it would be cool to have a "public&q= uot; API defined / documented - otherwise it seems that I'm simply goin= g through existing blogs, documentation etc and of course the source code.= =C2=A0 When going through source code, there's many functions that are = named similarly and yes there's docs but I found myself wanting some ki= nd of Javadoc-ish API documentation :)

Thanks,
--Nate
--000000000000f26f190595e9e1dd--