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: Sun, 28 Feb 2021 12:33:18 +0100	[thread overview]
Message-ID: <a4ef1fc8-7ec8-48f5-0861-a5ed292e7d96@xgm.de> (raw)
In-Reply-To: <565b3cb59087b33087676d8059a7e39d@isnotmyreal.name>

Am 26.02.21 um 20:30 schrieb TRS-80:
> 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.

Ok, I expected that's the way to go. Unfortunately, I wasn't able to 
find how to set a custom archive function. Could you give me a pointer?



  reply	other threads:[~2021-02-28 11:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 20:22 Florian Lindner
2021-02-25 20:49 ` Florian Lindner
2021-02-26 19:30   ` TRS-80
2021-02-28 11:33     ` Florian Lindner [this message]
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=a4ef1fc8-7ec8-48f5-0861-a5ed292e7d96@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).