emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Florian Lindner <mailinglists@xgm.de>, emacs-orgmode@gnu.org
Subject: Re: [FR] Archive subtree with parent structure
Date: Wed, 28 May 2014 15:49:01 -0400	[thread overview]
Message-ID: <m2bnuhu1jm.fsf@gmail.com> (raw)
In-Reply-To: <87ha494rr4.fsf@bzg.ath.cx>


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.

  reply	other threads:[~2014-05-28 19:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28  8:18 [FR] Archive subtree with parent structure Florian Lindner
2014-05-28 19:39 ` Bastien
2014-05-28 19:49   ` Ken Mankoff [this message]
2014-05-29  8:29   ` Alan Schmitt
2014-05-29  8:42   ` Achim Gratz

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=m2bnuhu1jm.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mailinglists@xgm.de \
    /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).