From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: Exclude all TODO keywords from refile targets Date: Sat, 24 Nov 2012 20:46:07 -0600 Message-ID: References: <87txsfsbw8.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcSET-0007l9-Vt for emacs-orgmode@gnu.org; Sat, 24 Nov 2012 21:46:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TcSES-0004Lc-OR for emacs-orgmode@gnu.org; Sat, 24 Nov 2012 21:46:09 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:48963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcSES-0004LY-Ju for emacs-orgmode@gnu.org; Sat, 24 Nov 2012 21:46:08 -0500 Received: by mail-ie0-f169.google.com with SMTP id c14so1503468ieb.0 for ; Sat, 24 Nov 2012 18:46:07 -0800 (PST) In-Reply-To: <87txsfsbw8.fsf@norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On Sat, Nov 24, 2012 at 1:22 AM, Bernt Hansen wrote: > Jason Dunsmore writes: > >> I found a bit of code to exclude DONE keywords from refile targets >> here: http://orgmode.org/worg/org-hacks.html#sec-2-3 >> >> Since I try to keep all headings with keywords as end nodes, I wanted >> to exclude all TODO (and DONE) keywords. However, the member function >> doesn't work on a sequence data type, so I couldn't use >> org-todo-keywords the same way the org-hacks code used >> org-done-keywords. Furthermore, org-todo-keywords contains extraneous >> characters in parenthesis that define "selection characters". I ended >> up creating a new variable, org-todo-keywords-list, and converting the >> data from org-todo-keywords into a similar format as >> org-done-keywords. >> >> Perhaps a org-todo-keywords-list variable would be a useful addition >> to org-mode. Here's the code I'm using: >> >> (setq org-todo-keywords '((sequence "TODO(t)" "DELEGATE(l)" >> "STARTED(s@)" "WAITING(w@)" "|" "DONE(d)" "CANCELLED(c)" >> "DELEGATED(e@)" "POSTPONED(p@)"))) >> > > You should be able to use org-todo-keywords-1 which contains a list of > todo keywords for the current org file. That works perfectly. Thank you.