From: "Josep Monés Teixidor" <jmones@gmail.com>
To: emacs-orgmode@gnu.org
Subject: auto-archiving done entries?
Date: Sat, 21 May 2011 19:55:11 +0200 [thread overview]
Message-ID: <BANLkTinjWYZ6mh4X3OJ6Yh4svhgMHGgdzA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]
Hello all,
Sorry if my question is too easy, but I have no experience in elisp and
emacs org-mode customization.
I've been trying to automatically archive done tasks to a sibling archive
file but so far I've been unsuccessful.
Tasks should be archived if:
* They are done (and closed before a certain amount of time)
* All of its siblings are done (and closed before a certain amount of time)
* Parent doesn't have any todo keyword
For instance, my org file structure has the following structure:
* Tasks
* TODO task1
* DONE task2
* Projects
* Personal
* TODO personal project 1
* TODO personal project 1 task 1
* DONE personal project 1 task 2
* DONE personal project 2
* DONE personal project 2 task 1
* DONE personal project 2 task 2
* Professional
* TODO professional project 1
* TODO professional project 1 task 1
* DONE personal project 1 task 2
I'd like function to archive tasks so that it leaves the following and
archives the rest to sibling file:
* Tasks
* DONE task2
* Projects
* Personal
* TODO personal project 1
* TODO personal project 1 task 1
* DONE personal project 1 task 2
* Professional
* TODO professional project 1
* TODO professional project 1 task 1
* DONE personal project 1 task 2
I tried org-my-archive-done-tasks code I found here:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg02939.html
However, I haven't succeed in making it archive anything in my setup.
How can I achieve this behaviour?
TIA,
Josep
[-- Attachment #2: Type: text/html, Size: 2245 bytes --]
next reply other threads:[~2011-05-21 17:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-21 17:55 Josep Monés Teixidor [this message]
2011-05-21 18:00 ` auto-archiving done entries? Josep Monés Teixidor
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinjWYZ6mh4X3OJ6Yh4svhgMHGgdzA@mail.gmail.com \
--to=jmones@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.