Re: [O] [FR] Archive subtree with parent structure

2014-05-29 Thread Alan Schmitt
On 2014-05-28 21:39, Bastien b...@gnu.org writes:

 Hi Florian,

 Florian Lindner mailingli...@xgm.de writes:

 If I also archive AB after that, it gets inserted in the structure which
 is now identical to the structure we started with.

 FR noted, thanks.  I'm curious to see if people would really find this
 a good option, as I like having my archives stored as flat entries.

I would also prefer to have my archives hierarchical, for the following
reason. I like to archive projects as a whole thing (with the recorded
done tasks and the notes). A flat archiving system prevents me from
archiving anything until the project is done, which is problematic for
long running projects. Having hierarchical archiving would allow me to
trim these projects from their done tasks.

Alan



Re: [O] [FR] Archive subtree with parent structure

2014-05-29 Thread Achim Gratz
Bastien writes:
 If I also archive AB after that, it gets inserted in the structure which
 is now identical to the structure we started with.

 FR noted, thanks.  I'm curious to see if people would really find this
 a good option, as I like having my archives stored as flat entries.

I have Org files that would benefit from hierarchical archiving
(i.e. the archive and the current file need to have the same structure).
At the moment I archive inline for this very reason, but of course
that means the file will get bigger and bigger.

 If someone wants to give this a try, please go ahead.

I'm out of round tuits at the moment… :-(


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] [FR] Archive subtree with parent structure

2014-05-28 Thread Bastien
Hi Florian,

Florian Lindner mailingli...@xgm.de writes:

 If I also archive AB after that, it gets inserted in the structure which
 is now identical to the structure we started with.

FR noted, thanks.  I'm curious to see if people would really find this
a good option, as I like having my archives stored as flat entries.

If someone wants to give this a try, please go ahead.

-- 
 Bastien



Re: [O] [FR] Archive subtree with parent structure

2014-05-28 Thread Ken Mankoff

On 2014-05-28 at 15:39, Bastien wrote:
 If I also archive AB after that, it gets inserted in the structure which
 is now identical to the structure we started with.

 FR noted, thanks.  I'm curious to see if people would really find this
 a good option, as I like having my archives stored as flat entries.

+1. 

I'd find this useful. I would like archives to exactly mimic source, and
I also archive sub-tasks and items throughout a project, not just the
entire project when I'm done with it.

Currently my archive setup is:

;; http://orgmode.org/worg/org-hacks.html#sec-1-7-1
(setq org-archive-location (concat org-directory /archive/%s_archive::* 
Archived Tasks))
;; Archive to archive/foo.org_archive and then under the existing header
(defadvice org-archive-subtree (around my-org-archive-subtree activate)
  (let ((org-archive-location
 (if (save-excursion (org-back-to-heading)
 ( (org-outline-level) 1))
 (concat (car (split-string org-archive-location ::))
 ::* 
 (car (org-get-outline-path)))
   org-archive-location)))
ad-do-it))

  -k.