emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: TRS-80 <lists.trs-80@isnotmyreal.name>
To: emacs-orgmode@gnu.org
Subject: Re: Set archive location relative to property
Date: Fri, 26 Feb 2021 14:30:56 -0500	[thread overview]
Message-ID: <565b3cb59087b33087676d8059a7e39d@isnotmyreal.name> (raw)
In-Reply-To: <625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de>

On 2021-02-25 15:49, Florian Lindner wrote:
> 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?

I could be wrong, but my feeling (in either case) is something like
that would probably require writing a custom archive function.
Luckily, Orgmode allows you to do that.

Cheers,
TRS-80


  reply	other threads:[~2021-02-26 19:31 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
2021-02-26 19:30   ` TRS-80 [this message]
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=565b3cb59087b33087676d8059a7e39d@isnotmyreal.name \
    --to=lists.trs-80@isnotmyreal.name \
    --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).