From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Josep_Mon=E9s_Teixidor?= Subject: auto-archiving done entries? Date: Sat, 21 May 2011 19:55:11 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0022152d62ad95356f04a3ccf033 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNqOQ-0004tz-Gr for emacs-orgmode@gnu.org; Sat, 21 May 2011 13:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNqOP-0002VO-6P for emacs-orgmode@gnu.org; Sat, 21 May 2011 13:55:14 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:46778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNqOP-0002VJ-3R for emacs-orgmode@gnu.org; Sat, 21 May 2011 13:55:13 -0400 Received: by vxk20 with SMTP id 20so4330060vxk.0 for ; Sat, 21 May 2011 10:55:12 -0700 (PDT) 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: emacs-orgmode@gnu.org --0022152d62ad95356f04a3ccf033 Content-Type: text/plain; charset=ISO-8859-1 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 --0022152d62ad95356f04a3ccf033 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 siblin= g 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 sibling= s are done=A0(and closed before a certain amount of time)
* Paren= t doesn't have any todo keyword

For instance, my org file structure has the following s= tructure:
* Tasks
=A0* TODO task1
=A0* DONE t= ask2
* Projects
=A0* Personal
=A0 * TODO pers= onal project 1
=A0 =A0* TODO=A0personal project 1=A0task 1
=A0 =A0* DONE pe= rsonal project 1=A0task 2
=A0 * DONE personal project 2
=A0 =A0* DONE personal project 2 task 1
=A0 =A0* DONE personal p= roject 2 task 2
=A0* Professional
=A0 * TODO professional project 1
=A0 =A0* TODO=A0professional=A0project 1=A0task 1
=A0 =A0*= DONE personal project 1=A0task 2

I'd li= ke function to archive tasks so that it leaves the following and archives t= he rest to sibling file:
* Tasks
=A0* DONE task2
* Projects
= =A0* Personal
=A0 * TODO personal project 1
=A0 =A0* TO= DO=A0personal project 1=A0task 1
=A0 =A0* DONE personal project 1= =A0task 2
=A0* Professional
=A0 * TODO professional project 1
=A0 =A0* TODO=A0professional=A0project 1=A0task 1
=A0 =A0* DONE= personal project 1=A0task 2

I tried o= rg-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?

<= div>TIA,

Josep


=


--0022152d62ad95356f04a3ccf033--