From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MDYrBRPUcmeREwAAe85BDQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 17:10:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MDYrBRPUcmeREwAAe85BDQ (envelope-from ) for ; Mon, 30 Dec 2024 18:10:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cZJuG3RH; 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=1735578642; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rLnyx0XRR0AhIAOOQeqI5b95PFCky6D3ecekjiq0s68=; b=aTnv1/8klPHtgj7H2Vabr1bEep+pTB7NBHAKCX047aQR/fR9k/4rnkUgWIf67g10eZfyGM Zz5UPjS/PBiKoNji0/LKh8uod0sIv0FkyplAEHeNlWeO38gmv2SH2gQsJ5MU0gUuj8VNOp Bnub8yEt60rxEJjdK1IyA7/F+UrnkvtIsIIrvjcTtJn1YsTJoU4CI2KzAoD75ND9R8er5w KgYHdXJ5sB4Hdve5NDRYSsrpc4v7T2ATLng5F3Wwj2J0kigK047ZdK2pfoVgbXbHv2poEB PdhKGliYMD5F5tFczF3NSj+2yiyBekmS/5ItVUnvWq7k+eRFyZmlpgxCyk6v9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cZJuG3RH; 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=1735578642; a=rsa-sha256; cv=none; b=SY52C6EzFIl/McAMJLoXIn02ZK0HLUqTeMQOSSvNrTmQSsXzOLvUQvjCIv47HBm5GVZ+RX rxN4Pj3caezhtvWTbqEftpAf+RxlY5lCwNGnZ/J0JbdbKT2WI3IhZMY5Eu2n5/GomUhYp8 MaOLJ22vtO5GVSV1z+GIbYXwmObs0lQIgd9iEJsS1QQpAIO9xGo6KNpM53TSBdAe8LPVcC 0iSbpzcvvhpPLRG1pv7HPxc22AZyVomZfKkeMswp0mDS7NAR/zcV8bGrvaUiVSUFTG16iX 1jIAorStqGVvvINiMV6D+mSCUfBqJtgL8yrctGI7FSxX5UHlkSpIqWHXmEE+Lg== 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 BFBF78C1C5 for ; Mon, 30 Dec 2024 18:10:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSJHA-0007RN-78; Mon, 30 Dec 2024 12:09:56 -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 1tSJH8-0007RE-J5 for emacs-orgmode@gnu.org; Mon, 30 Dec 2024 12:09:54 -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 1tSJH5-0003Wn-G0 for emacs-orgmode@gnu.org; Mon, 30 Dec 2024 12:09:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7FC97240027 for ; Mon, 30 Dec 2024 18:09:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735578589; bh=JVyvneoha/bATO2+DIJE/DhAyXgQClhatlryxOBHfOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=cZJuG3RHtnNzgsH8RHc0bK0y1qBby7nnjx8sDRm4mFxg+BOfVmrdbhIg6vu+RZqF0 2mFyS+O2aHmcqzUbya0zZhyddpyMePGaE7U125MZv9DZaTRHFq33+CgluM6gT4iiOc ObYCZF+/5DnPLr/611ssMwTuTxPJoMUAoSx/WzyHBSsh22KrW94HGFV7VjOjQfkxjy Kl2qfIhiog19Z9Kcdk3le/9orfUQqqf6IUkYJ4o+r1LK3kKK+D54a1dDWr1nb4rLex ZaeHiYQDHU8IXzQI3qpJN35TvWf3zw4FflzyVWpJk+0H98zGI86JG3dSptT0TLLK8k fdeEQc1y15wNg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YMMzK0gRzz6tx8; Mon, 30 Dec 2024 18:09:49 +0100 (CET) From: Ihor Radchenko To: Jack Kamm Cc: emacs-orgmode@gnu.org Subject: Re: Month-week and quarter-week datetrees (RFC and package announcement) In-Reply-To: <87ldvx3zxv.fsf@gmail.com> References: <878r5b1nr2.fsf@gmail.com> <87o7e677ex.fsf@localhost> <87y1daz186.fsf@gmail.com> <87msgvcvku.fsf@localhost> <87ttametje.fsf@gmail.com> <871pxqhj85.fsf@localhost> <87ldvx3zxv.fsf@gmail.com> Date: Mon, 30 Dec 2024 17:11:19 +0000 Message-ID: <87jzbh2j0o.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.18 X-Spam-Score: -6.18 X-Migadu-Queue-Id: BFBF78C1C5 X-TUID: gttl8AaWakbi Jack Kamm writes: > Does `org-element-cache-map' traverse elements in the order they're in > the buffer? That is something we need for this. Yes, it does. You can even edit buffer along the way. `org-element-cache-map' combines regexp search and parser cache trying to be as fast as possible. > On my working branch I have an earlier commit that implements many of > the improvements here but using the old regexp search way instead of the > org-element way. Would it be worth reverting to that point? > Specifically, the new `org-datetree-find-create-entry' that allows for > nested years/quarters/months/weeks/days is still pretty straightforward > to implement in the regexp approach. The more general > `org-datetree-find-create-hierarchy' (that allows elisp hackers to build > new kinds of datetrees) might be trickier without org-element, but we > could also defer that for future work. I believe that `org-element-cache-map' should be good enough to do everything. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at