emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Daniel J. Sinder" <djsinder@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-archive-done
Date: Thu, 15 Jun 2006 16:18:31 -0700	[thread overview]
Message-ID: <4491EAC7.7080304@gmail.com> (raw)
In-Reply-To: <874pyomawm.fsf@ibbu.nl>

nielsgiesen@ibbu.nl wrote:
> How about a function org-archive-done, that archives any tree in the
> buffer labelled DONE?
> 
> One might refine this to archive trees absolutely done, so that---even
> when a heading is labelled DONE---it looks to its subtrees to check
> whether they have no label which states the opposite.
> 
> Also, I think it only nice/useful for top-level headings, not below.
> 

I like the idea proposed by Niels, but I'd want to be able to call
it for a tree too, not just the top-level of a whole file.  In other
words, I'd like to prune any chosen tree to archive DONE items under
it.  Perhaps an example is best...

--- .org file before archiving ---
* Tasks
** TODO Task 1
** DONE Task 2
** TODO Project A
*** TODO Task A1
*** DONE Task A2
** DONE Project B
*** DONE Task B1
*** DONE Task B2

--- .org file after archive of top-level tree ---
* Tasks
** TODO Task 1
** TODO Project A
*** TODO Task A1
*** DONE Task A2

--- _archive file after archive of top-level tree ---
* Tasks
** DONE Task 2
** DONE Project B
*** DONE Task B1
*** DONE Task B2

Dan

  parent reply	other threads:[~2006-06-15 23:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-14  7:52 org-archive-done nielsgiesen
2006-06-14  9:51 ` org-archive-done Carsten Dominik
2006-06-15 23:18 ` Daniel J. Sinder [this message]
     [not found]   ` <f7ace8d973d1c1a267efc937f401693e@science.uva.nl>
     [not found]     ` <44933E3A.9010100@gmail.com>
     [not found]       ` <eccd33106d5ddb5d8922507c9fcebf30@science.uva.nl>
     [not found]         ` <44946A6F.7020508@gmail.com>
2006-06-18  7:05           ` org-archive-done Carsten Dominik
2006-06-18  7:59             ` org-archive-done Daniel J. Sinder
2006-06-18  9:45               ` org-archive-done Carsten Dominik
2006-06-19 17:07               ` org-archive-done Carsten Dominik

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=4491EAC7.7080304@gmail.com \
    --to=djsinder@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).