emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-refile-targets
Date: Thu, 16 Apr 2009 14:12:54 -0700	[thread overview]
Message-ID: <20524da70904161412q14e6e040h84502a38652cea69@mail.gmail.com> (raw)

I never want to refile to a task that has certain todo kw.
These include DONE and other doneish kw.  Eliminating these
states from the list of refile targets would have several
advantages:

  1) The set of candidates is reduced, requiring fewer
     keystrokes to select a target.
  2) The possibility of misfiling into a task that will be
     archived is reduced.
  3) The list length is reduced, helping to work around some
     of the speed problems that I have been experiencing with
     ido.  This is possibly at the cost of slower creation of the
     initial list, however.

The documentation for org-refile-targets says:

>   - a cons cell (:todo . "KEYWORD") to identify refile
>     targets by todo keyword.

But this suggests the presence of a kw, rather than the
absence of one.

In principle I might get the desired effect by including all
kw /except/ doneish ones, and also including the empty
string.

But if I did so, I don't think it would work, because I
already set (:maxlevel . 5).  I did not find a way to
specify that I want non-doneish entries (including blank)
that are below level 6.

Would it be feasible to allow AND and NOT?

  (setq org-refile-targets
        `((,(file-expand-wildcards (substitute-in-file-name "$dorg/*.org"))
           . (and (:maxlevel . 5)
                  (not (:todo . "DONE"))
                  (not (:todo . "MOST"))
                  (not (:todo . "MOOT"))
                  (not (:todo . "DUPLICATE"))))))[fn:13]

Or is there a way that I can do this with existing org?

Thanks.

[fn:13] Or (not (todo "DONE")) or (not (or (todo "DONE")
...).

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Greed is corrupting science into foul nonsense.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Greed is corrupting science into foul nonsense.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

             reply	other threads:[~2009-04-16 21:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 21:12 Samuel Wales [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-04-16 20:53 org-refile-targets Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20524da70904161412q14e6e040h84502a38652cea69@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).