From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Capturing, refiling, archiving Date: Sun, 17 May 2015 10:13:58 +0200 Message-ID: <871tifaaex.fsf@nicolasgoaziou.fr> References: <87r3qld1hb.fsf@posteo.de> <87lhgsn4kp.fsf@nicolasgoaziou.fr> <87pp64dpau.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yttgd-0006AY-7T for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yttgc-0000tT-3U for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:12:39 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:42319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yttgb-0000sk-U6 for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:12:38 -0400 In-Reply-To: <87pp64dpau.fsf@posteo.de> (Titus von der Malsburg's message of "Wed, 13 May 2015 16:35:05 -0700") 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: Titus von der Malsburg Cc: emacs-orgmode Titus von der Malsburg writes: > The reason why I think this would be useful is that some simple things > are currently not possible. Consider the following document structure: > > * Office > ** To do > ** Finished > * Home > ** To do > ** Finished > > If I want to archive things under the =E2=80=9CAgenda/Finished,=E2=80=9D = there is no way > to achieve this (correct me if I=E2=80=99m wrong). I could try this > > (setq org-archive-location "::** Finished") > > but that is ambiguous. It doesn=E2=80=99t indicate which of the two =E2= =80=9CFinished=E2=80=9D > nodes should be the target. > > Similar problems exist for refile targets: if I want to have the first > =E2=80=9CFinished=E2=80=9D in my targets but not the second, how would I = achieve that? > None of the available facilities allows me to do this (without changing > the document structure). > > Using the capture template way of specifying targets, both problems > would be easy to solve because that mechanism allows me to specify the > complete path in the document tree leading to the node of interest > (among other things, file+regexp, etc.) Capture and Refile are two very different concepts. In the former, you define a static, or a set of static, accurate location that may not exist yet. In the latter, you pile up existing locations that you filter interactively, depending on the situation. In your example above, it is possible to refile under any "Finished" headline by choosing the right path. Archiving may indeed lack a way to specify a full path in a document. But supporting the full capture template elements doesn't make sense either. You cannot archive into a table, an item... Regards,