From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wLncOqh/O2DTDAAA0tVLHw (envelope-from ) for ; Sun, 28 Feb 2021 11:34:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uDq9Nqh/O2CiEgAA1q6Kng (envelope-from ) for ; Sun, 28 Feb 2021 11:34:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F12E14054 for ; Sun, 28 Feb 2021 12:33:59 +0100 (CET) Received: from localhost ([::1]:37314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGKKj-0001IV-5t for larch@yhetil.org; Sun, 28 Feb 2021 06:33:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGKKJ-0001IE-Af for emacs-orgmode@gnu.org; Sun, 28 Feb 2021 06:33:31 -0500 Received: from mail.xgm.de ([45.83.105.139]:35950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGKKE-0007Sa-Tc for emacs-orgmode@gnu.org; Sun, 28 Feb 2021 06:33:30 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3982A180A73 for ; Sun, 28 Feb 2021 12:33:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=dkim; t=1614511999; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ON48iaZ8Z8fdCZW+TsQ8up5qQSF5vL1tP2xEQjLry0w=; b=A3FJSRJpFsgp+6+hRtDT+s5r6XzCo6HjaCVSUy8JYqoekHlWFBwaZKgElnEZbQ5MAGVBTF Js8iqN2LTHyf/UJuj1EqoJMCN1rLnse3eiV4OuUCW5ejLOKg2N2gJYrP9lvdWwdOaUYS3N JSD25N+wIFWFPBCRpnloxHBQsUEbWVASFs1WpuvbP0cNfg4icMYATp/IAg5X/H7MUw2FKz wDb+vXHTR5wzfB5l2PWIj9/oudt4WXk98YslSK/tPgPZPctvact5zEQsHlyyh8dVAHTKA9 gG6oP6r76Wcg1dL+9LrhkHSj71NDoRA6euy8z7VEebW5Znk45Vmt4hTH0j/g0g== Subject: Re: Set archive location relative to property To: emacs-orgmode@gnu.org References: <625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de> <565b3cb59087b33087676d8059a7e39d@isnotmyreal.name> From: Florian Lindner Message-ID: Date: Sun, 28 Feb 2021 12:33:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <565b3cb59087b33087676d8059a7e39d@isnotmyreal.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US-large Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=45.83.105.139; envelope-from=mailinglists@xgm.de; helo=mail.xgm.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.35, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614512039; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ON48iaZ8Z8fdCZW+TsQ8up5qQSF5vL1tP2xEQjLry0w=; b=F38cqR5S58QnX9RQ15MUm8dyvJsPxQwWW6xdTtNwffVlS4efJ9ire1y2pqBSEiuSTPH7m0 StWAX3waNNdlsvaTE5E6jJZMpHtbLBkE8W15Kuz9mFHyZwYqjqb0BEPNkBzE4/sHPY0B0P sgHqUIQ1yK5s9FId7nk52M/9x9OFXC+LxzvG7onLioWM8BoThNj/Bfbn4pJrNVJe5Pqzn7 AkJ3Dq12wICedGAoPWB3fgaO2/hUYCx/rOVdZG/lGndz3ZIwJJJbEHItRjxnN/805QA0OS PMdFiND0w2HBztaudrVzfJr7R+y+wU+wMtWFEOcIfdLi5bdU/qNkDh0R2qMKfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614512039; a=rsa-sha256; cv=none; b=YiG8/SxOL+9vFaSetXcxYEdL/5Ax07GFfo1sbyKGBNq4Xr2mcEkPI28+6CPW3KwcTuv1ZP vNpM6FSn+3zMofisUE+XQxnbk7R9Stmo1YXjcNDmkvcVfuVduNErm5R3yADQw3Ju0G3PdC SB0SG0ztWHpbMxtKGQ2U0sA7lmapWFZrCXtO9hZ1Un2HBkw00K8eu9PNTjs8IZICLgwygX ldLhahchg9Msxw1S59TsQ0YDJ0YE6ZQmsxUBNHyPvRkIXYfXD6pbIrLNRzi327cwZX2rQa HU2mP3G4npcejPC8Lhea8xeL+Z+XusdaCg45bqMcNA9hIvj0ZRxNGsSJ7m+WDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=xgm.de header.s=dkim header.b=A3FJSRJp; dmarc=pass (policy=none) header.from=xgm.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=xgm.de header.s=dkim header.b=A3FJSRJp; dmarc=pass (policy=none) header.from=xgm.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4F12E14054 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: l1tZQ5SzhZ+g 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?