emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Lindner <mailinglists@xgm.de>
To: emacs-orgmode@gnu.org
Subject: Re: Set archive location relative to property
Date: Thu, 25 Feb 2021 21:49:56 +0100	[thread overview]
Message-ID: <625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de> (raw)
In-Reply-To: <e5f91289-34da-51de-8618-36a5749a6751@xgm.de>

Am 25.02.21 um 21:22 schrieb Florian Lindner:
> is this possible with org-mode? Given a tree:
> 
> * Name
> :PROPERTIES:
> :ARCHIVE:  ???
> :END:
> ** Archive    :ARCHIVE:
> ** Some node
> 
> Upon archiving "Some node" (or any direct or indirect sub-node of 
> Projectname) I want to end it up under "** Archive". The archive 
> location should always be relative to the node where the property 
> ARCHIVE is set.
> 
> The documentation org-archive-location does not suggest that is possible.

An alternative idea would be a setting for the ARCHIVE property that 
searches the tree upward until it finds a node with an :ARCHIVE: tag and 
use that as archive location. Maybe indicated by a setting of "::%a".

What do you think?


  reply	other threads:[~2021-02-25 20:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 20:22 Set archive location relative to property Florian Lindner
2021-02-25 20:49 ` Florian Lindner [this message]
2021-02-26 19:30   ` TRS-80
2021-02-28 11:33     ` Florian Lindner
2021-02-28 11:52       ` Ihor Radchenko

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=625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de \
    --to=mailinglists@xgm.de \
    --cc=emacs-orgmode@gnu.org \
    /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).