From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AAqwE5ifaWfgPgAAqHPOHw:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:36:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AAqwE5ifaWfgPgAAqHPOHw (envelope-from ) for ; Mon, 23 Dec 2024 18:36:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aw0PA4m0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734975383; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=ze1wiTJ2us6oMazw37o/mjZKHDsCICVq7YFMgKjb4HM=; b=rM/e0WETVQ2GSxnzSlITV96MicCQN7qiNui+vSvAir7rLNtQjEnljHnJqv2coNT1DOrMfy 54E4UdGTMaJChJISKronprQioO2Bb1/bU7sFXDmk76gDJlY/xM+IiInVpKjatg1an+DKk1 A35+rMC4nF76uc6A+5NjyFcfuaJx051PNr5AY7Vv4o52e7C0bJHJyL/HwLhpZSo1TSewuU Lk/IwxdBuJKNkpj2eZq6R5b0kedimgVh9KKdNkceCxLo78QPY3GYIvvbIk3FJiJJCvS6AA e+tkOkZWswA0kdd8R6RsU08MBenFRxLpdA/3nY7Hdg69FmuoN69mdUtm0i1yIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aw0PA4m0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734975383; a=rsa-sha256; cv=none; b=WkC1t8npvWz6rQDalJjHksxlDhW0xVy7vjjsmM82zjSNgdxV5SXpQJ/Iq4wYMelB2RaiJ2 SAPWTl0eB4A/s/R7dXCweZWjBfM77j5VnX5kDEYc5vNSVRJ5h6jniEtS1rqpGtNetustRE DF5lZmmLt6S6iFJYZZBvoiLr60ltoHTREOlnk8xMHsutzZwF4eEODXouI4uv8ty/+f1mN9 fXP2L+EMhVMMRXI1GluDg/g/skfBlN3564vgcqjJY1vuXMaCcE0CxLvQgQWoAG8MjDC9zD muplMy9i1fWJg5Dpxat9bptzpkoCA2ebAFkdp8yJ4wfhSM11lcxye4IjVPo9ng== 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 41DF68054E for ; Mon, 23 Dec 2024 18:36:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPmL4-0007Bo-EZ; Mon, 23 Dec 2024 12:35:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPmL0-0007BS-C9 for emacs-orgmode@gnu.org; Mon, 23 Dec 2024 12:35:26 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPmKx-00045R-Rb for emacs-orgmode@gnu.org; Mon, 23 Dec 2024 12:35:25 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 043E1240027 for ; Mon, 23 Dec 2024 18:35:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734975320; bh=ze1wiTJ2us6oMazw37o/mjZKHDsCICVq7YFMgKjb4HM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=aw0PA4m0QLEruxdgOdBS8+515TqVCGTrpTDcTS9XkgMn8msk4AsOChMSprxpxpKfP QcLJyW1hg/Lq/6ldBw32Xy94nu4P39q+328QULwUOPSt0uB4+aYgZHnVKibt2ItLWO TZGeFYCRRFMmUQkCre8vDCzdXu8KnjZsYZZJJZ8JX7cJd7LL3aHycd/fenD2J4Bcep agaKyEoDjqAPfQzFRqaSjQsmlz41TwH0IQaJeWGws9kAS0Jg1d4EF/ZzIVtpOpwVxj i4DjKMCfBjT9A5EnPa1XsmDXnQUvbtTPXhWNgLlst0SB6BO1ZVHAWUm3MMB0OLrZJ5 jxIi4NuevTi7g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YH4sz2fl9z9rxD; Mon, 23 Dec 2024 18:35:19 +0100 (CET) From: Ihor Radchenko To: John Wiegley Cc: emacs-orgmode@gnu.org Subject: Re: Patch to add a new org-archive hook and context info type In-Reply-To: References: Date: Mon, 23 Dec 2024 17:36:51 +0000 Message-ID: <87frmejo7g.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 41DF68054E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.90 X-Spam-Score: -3.90 X-TUID: xf9k4Rc7au8S "John Wiegley" writes: > The following patch adds =E2=80=98org-archive-finalize-hook=E2=80=99, whi= ch runs earlier than > =E2=80=98org-archive-hook=E2=80=99 and in the destination buffer, not the= original file. This > allows the context to be extended, the archived entry to be cleaned up af= ter > inseration, maybe even encrypted or hashed to prevent changes. > > I also added a new =E2=80=98ARCHIVE_OLID=E2=80=99 context type, which pre= serves the ID of the > parent the archived entry was previously under. This is because ARCHIVE_O= LPATH > is not stable: it=E2=80=99s very possible the tree structure may change o= ver time and > invalidate the path. But as long as the original parent is not deleted, t= here > stands a better chance that the original context of the archived entry ca= n be > restored. Thanks! May you please split the patch into multiple - one per feature, document the new features in etc/ORG-NEWS, and add a proper commit message to the patches? --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at