From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer@krugs.de (Rainer M. Krug) Subject: =?UTF-8?B?UmU6IFJlc3RvcmUgYW4gYXJjaGl2ZWQgc3VidHJlZSAtIFJlc3Rh?= =?UTF-8?B?dXJhdGlvbiBkJ3VuZSBicmFuY2hlIHNww6ljaXF1ZSBhcmNoaXbDqWU=?= Date: Thu, 04 Apr 2013 12:53:05 +0200 Message-ID: <87obdur2i6.fsf@krugs.de> References: <05e601ce30f7$6ed21480$4c763d80$@gmail.com> <87a9pe8vsf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNhnA-0001LK-Fc for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 06:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNhn7-0004DZ-8p for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 06:53:16 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:36304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNhn7-0004DR-2Y for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 06:53:13 -0400 Received: by mail-wi0-f172.google.com with SMTP id hr17so4550052wib.11 for ; Thu, 04 Apr 2013 03:53:12 -0700 (PDT) In-Reply-To: <87a9pe8vsf.fsf@bzg.ath.cx> (Bastien's message of "Thu, 04 Apr 2013 11:55:28 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org, Steve Prud'Homme Bastien writes: > Hi Steve, > > "Steve Prud'Homme" writes: > >> Hi, I archive with C-c C-x C-a =C2=A0on 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=3Dpgpmime mode=3Dsign> 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.=20 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=20 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 --=20 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