emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: emacs-orgmode@gnu.org
Subject: Conditionally archiving to an archive file or archive tree?
Date: Thu, 10 Nov 2011 10:12:39 -0600	[thread overview]
Message-ID: <878vnoufbc.fsf@grumps.lan> (raw)

Hiya all,

Is there an easy way to conditionally archive to an archive file or
archive tree?  I guess I should write my own tool but often times there
are builtin things and I end up rewriting tools without knowing it, so
querying on that before I go ahead and write something.  (Might also be
good to know if this is a need of other people than just me.)


Basically, imagine an orgmode file of the following structure:

#+begin_src org

* No archive file tree
** TODO Some task!  Should archive to sub-tree
** TODO Some task!  Should archive to sub-tree also!

* Archive things in here to an archive file
  :PROPERTIES:
  :ARCHIVE: %s_archive::* Somethingorother
  :END:

** TODO Archive me to an archive file!
** TODO Also archive me to an archive file!
*** TODO However not subtasks!
*** DONE archiving this subtask should move to an archive subtree
*** Archive                                                    :ARCHIVE:
**** DONE See, like so
#+end_src

Is there a nice builtin way to do this, or should I write it myself?
Also, if I should write it myself, would anyone else find this
functionality useful?  Personally, I think this is a good way of doing
things to keep files from getting full of cruft but also allowing big
projects full of subtrees to stay coherent as you move things out of the
way.

Thanks!
 - Chris

                 reply	other threads:[~2011-11-10 16:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=878vnoufbc.fsf@grumps.lan \
    --to=cwebber@dustycloud.org \
    --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).