emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Titus von der Malsburg <malsburg@posteo.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Capturing, refiling, archiving
Date: Sun, 17 May 2015 10:13:58 +0200	[thread overview]
Message-ID: <871tifaaex.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87pp64dpau.fsf@posteo.de> (Titus von der Malsburg's message of "Wed, 13 May 2015 16:35:05 -0700")

Titus von der Malsburg <malsburg@posteo.de> 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 “Agenda/Finished,” there is no way
> to achieve this (correct me if I’m wrong).  I could try this
>
>   (setq org-archive-location "::** Finished")
>
> but that is ambiguous.  It doesn’t indicate which of the two “Finished”
> nodes should be the target.
>
> Similar problems exist for refile targets: if I want to have the first
> “Finished” 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,

  reply	other threads:[~2015-05-17  8:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 19:45 Capturing, refiling, archiving Titus von der Malsburg
2015-05-13 10:40 ` Nicolas Goaziou
2015-05-13 23:35   ` Titus von der Malsburg
2015-05-17  8:13     ` Nicolas Goaziou [this message]
2015-05-17 17:40       ` Titus von der Malsburg
2015-05-17 18:53         ` Nicolas Goaziou

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=871tifaaex.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=malsburg@posteo.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).