From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 7NjAJqBMOWA/TwAA0tVLHw (envelope-from ) for ; Fri, 26 Feb 2021 19:31:44 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ECgZIqBMOWB6NQAA1q6Kng (envelope-from ) for ; Fri, 26 Feb 2021 19:31:44 +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 aspmx2.migadu.com (Postfix) with ESMTPS id E1DA08601 for ; Fri, 26 Feb 2021 20:31:43 +0100 (CET) Received: from localhost ([::1]:52344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFipx-0007vt-RA for larch@yhetil.org; Fri, 26 Feb 2021 14:31:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFipQ-0007vS-Ms for emacs-orgmode@gnu.org; Fri, 26 Feb 2021 14:31:08 -0500 Received: from server173-4.web-hosting.com ([68.65.122.210]:51633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFipN-0002nv-3H for emacs-orgmode@gnu.org; Fri, 26 Feb 2021 14:31:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jCN7znBwKtlSd32Kkk6MN6EZdw6MZjiRUftUmTNTWDE=; b=hP5JdrNjnrW5T59sLdhRo6WX6c bDbCWWHXl65cmnJAqyrkiSg4gE+YnXqOUSdM/VFsetTuT64o9iV6wHu9vGl66WzNyZy2Q+mouYNwG D+fA/0XIe2bCRfSu1y2fFDTIs+/8+DI6ckuFgMsJlmItRnfboKImhcx4cqDqPJUfwWvc8TZjF8WjT e3PugMKnxNShxlhqX23AL7M30hssRsYv0MFgpz6CB9+9E4q1Ve+ecBYiZBAjSOoIfsrTyoNhv9Bgb DmM8bIyufK5tIRyAakbzkdqly/cFoH5CNB5v62oLCL6322sOq3tTZRVfHF5PFfltZvow8K5jfg/es qPd+0H5g==; Received: from [::1] (port=48718 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1lFipE-003AYt-Vp for emacs-orgmode@gnu.org; Fri, 26 Feb 2021 14:31:01 -0500 MIME-Version: 1.0 Date: Fri, 26 Feb 2021 14:30:56 -0500 From: TRS-80 To: emacs-orgmode@gnu.org Subject: Re: Set archive location relative to property In-Reply-To: <625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de> References: <625dca10-6958-afdc-8584-94cb881c2c3a@xgm.de> Message-ID: <565b3cb59087b33087676d8059a7e39d@isnotmyreal.name> X-Sender: lists.trs-80@isnotmyreal.name User-Agent: Roundcube Webmail/1.3.15 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, HAS_X_OUTGOING_SPAM_STAT=0.237, 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=1614367904; 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=jCN7znBwKtlSd32Kkk6MN6EZdw6MZjiRUftUmTNTWDE=; b=NpuYiOqOiEGRtGBnSnQ87XIjLPZPD3Rls+NAEHRAPcZS0myRMIoIEAohWpf9sRrtWz1NS/ bbXIO4ryPUHBptya3ADEEAZRdtyB7dD79OgnVVtONbLz+LWNIUCiGWE665lygNvNub/7HW AGc0Uc0vaTq71XSYS8TdLczMcPgvdZNDYCObheXa3dFkd1Emd1L5YjPA5cpua/1aDMPMIV oV1aTKGugUqCE1ITNLLugNpmkNcFrP0/JqkQpumLPIgWuFxqo1TDCRt82W8LYGJvSYgnQg x1ZPubHOBxk7iwxFhOHHKUjEM3XUgCjW/tHTekpIUsh3VLL4n4OL3sZDG0A6Og== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614367904; a=rsa-sha256; cv=none; b=LSOaP1ayPHWYO2UQZd0oCLIYWIHz3N1rWZv31CPsUL3cWkZYYqTVk5c5oYqsBUJFgdLKJ4 Rb14DrtxDOQS4wniyUDs78b0NRMNbCZRGvTs6ITXZcPnN734ApkMPq0fJSUjmk2psc/dP3 D+hYXkiXgytbY6AuqqR2Qdght5Kr1xuZ3uSKbRSQ94RI00RbmZlSyUKjUca808nRe6lsGQ aiFm8mTqCcGwVcz/70pUIKtoUWImoYdLm9lz6eTUAhcRA0ULd4jgbVgRU8a4XhmRHAIjr9 Yr8jSmMOaV+50ihP/n8VZWATPmbFbryd2EMSHa9NJ7ltWVIcfXTncO6993JK+g== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b=hP5JdrNj; dmarc=none; spf=pass (aspmx2.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: -1.37 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b=hP5JdrNj; dmarc=none; spf=pass (aspmx2.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: E1DA08601 X-Spam-Score: -1.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: Daa0j3TircMr 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