emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org, Steve Prud'Homme <sprudhom@gmail.com>
Subject: Re: Restore an archived subtree - Restauration d'une branche spécique archivée
Date: Thu, 04 Apr 2013 12:53:05 +0200	[thread overview]
Message-ID: <87obdur2i6.fsf@krugs.de> (raw)
In-Reply-To: <87a9pe8vsf.fsf@bzg.ath.cx> (Bastien's message of "Thu, 04 Apr 2013 11:55:28 +0200")

Bastien <bzg@altern.org> writes:

> Hi Steve,
>
> "Steve Prud'Homme" <sprudhom@gmail.com> writes:
>
>> Hi, I archive with C-c C-x C-a  on a .org_archive file.
>>
>> How can I restore a subtree. It is possible
>
> Right after C-c C-x C-a you can do C-/ to undo.
>
> But you cannot restore subtrees archived at arbitrary time in the
> past.
<#secure method=pgpmime mode=sign>

I was thinking about this also for some time, as I sometimes use the
archive in literal programming to store some code chunks which I might
need later again.

I understand that it is not possible to store in the archive a link to
the location to which the subtree should be restored as edits will
change the location. 
But what about assigning each archived subtree an ID which is stored
together with the snippet in the archive file, and then put at the
location in the original file a property giving the ID of the
archived snippet? In this way one could 

a) easily see what was archived from where, and
b) restore the subtree to the location of the ID in the original file?

I think it would be a nice little extra in the process of archiving.

Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

      reply	other threads:[~2013-04-04 10:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04  5:44 Restore an archived subtree - Restauration d'une branche spécique archivée Steve Prud'Homme
2013-04-04  9:55 ` Bastien
2013-04-04 10:53   ` Rainer M. Krug [this message]

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=87obdur2i6.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=sprudhom@gmail.com \
    /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).