From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4CeAGL1ykGUsQwAAkFu2QA (envelope-from ) for ; Sat, 30 Dec 2023 20:42:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6NDOE71ykGVoBAAA62LTzQ (envelope-from ) for ; Sat, 30 Dec 2023 20:42:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ewpr096P; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703965373; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gbYbG0CHEGyR3mzX6hbZ5hepe58AW2ka0g9uK5VVeBQ=; b=jhYyhbcRSPyKVuPJ0RUAaZ+8XPTxNtASRZApTjFLDEq2skVuiaWVk2Htm+Ny0FYB7ZTllW qds7L4TiktO24I7MMhuK7iMFDKS3SX4rvbHAxfpCTJ7sYbdKOr6gOyGjTkCIDBNsIq7bak 99S35YzBM4U6kCPkFXSj5UJXNOAZNg1U8BaVU6u8Ljz7YttnlCPcM//yS2Ssp+FBrl2sJ5 5g/rvwKzgqiSmuNaC7t99H2zMKen0H67EajM1QEitW7PsB9isw3Ti+5EQ4p+GdiR0F4vuL xd+nxd2VXzoz/BEgfKDTxxbdTMZtPXKES+YGEYK1++nt0mfLG4AJ7GYB9SxrtA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703965373; a=rsa-sha256; cv=none; b=IPICbpozmBckLKSOdqSjQLu8o2ZfjT0eCmQO4i0SNUkWWGHyNDQo/KKlYfyVNaUm43UU89 8LqGT8MuaMEf50314AINX34Jie2mLd/pFj1hf/uz7YPPQ+QO/6WbqiouWep4KiVv/0zc0y f281G00W+c314tTdSt1gfdjbvxq6FSRFhj2ShssHuDzWxGdvBW1eUXUevprhE3zp/lYVIz 9HZub9FTl0pZIJBzgVT4/O1mKNZxHMA51UUCdPgn8K7Ar0sTJPDbB0h1Qrv1zi0tqSnxvn ZY7WKKv34xI1Xlw8CBT3JJX7ZkfH1nhO5M5ZfITbhI5p/8Ym6U4eFlytZsXEJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ewpr096P; 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=gmail.com 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 01D3A46294 for ; Sat, 30 Dec 2023 20:42:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJfDb-0006Vg-Uz; Sat, 30 Dec 2023 14:41:59 -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 1rJfDa-0006VY-Nw for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 14:41:58 -0500 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJfDY-0007c7-EL for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 14:41:58 -0500 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-35fea35c432so54087915ab.0 for ; Sat, 30 Dec 2023 11:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703965314; x=1704570114; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=gbYbG0CHEGyR3mzX6hbZ5hepe58AW2ka0g9uK5VVeBQ=; b=Ewpr096Pc2d6VaN9KQEjRANxx7P5Ca04DR/R+CSbbwlfeovchOYXEAquP2Q3BQ7Kcs lnBSVI9K9helhKN3yY05M6gizcEo7gz4IbylE3ZB9JmKsgCIi7+7osxlclOrThFwwgdX rr5wU8NNh90t2plIebkMl3ijJ95/lad0iSh5GdgrKGx1U072nRpuwFLl+XFQ33UT2dqe kMSB0k0OxmQQe+aCXqc/TAeWbMTIJH6AoKDYPnD0NexDjqMdOf2jyWYgsTvyCOGyLcnn 4IPhARlOEf1mP4F6zRPzFsflYHvFKfVPhM76YIH9OKLF7aCiPyb+l2idVXR8kbKcNHPd 7nsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703965314; x=1704570114; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gbYbG0CHEGyR3mzX6hbZ5hepe58AW2ka0g9uK5VVeBQ=; b=gcRGsPnXBLltfY+Z5rofLgswchT/FBCqKkUfUWTLLyAtd7qeArbfI1VMMAR2zNYmC+ BzAhf42LGOlwal5bHr/2mMFeeffyu6rPlmRM5aStGB/eCr0UW3Y7I16EVtAyItSUxobH DNC9prnKYhJV3mP5q3RBuy8aO2LPNgvnx6OQzR80eHAAW28qj6mB3d8+sq2BHY+41snr uZ6u+i1AvMVxqqqdxOGaaJCJlybZTqk7SbKSxGZ/NTl37BNVioMGubd1L+6zHSsft1Em 6UsYMeEXwKsCAFMSTJyq9elqS2prpFBYtcpSBO+XqEgG0N+mq2a95UGnmOgdoQZ0uTaW vjkw== X-Gm-Message-State: AOJu0YxjgzxUZvNyXh5uUv4TSDVSoCBIoEjlsHDLnPHYGqua3yqUvQjh GqiGTkYklGTZc3Cs4uQI5f8ukqSgEYk= X-Google-Smtp-Source: AGHT+IFvD/BaRt7m2kTz7ya/B9GEJdHHHiw/2vurz4QuKBqZnW4qGAz8I6MsMmbIWk+nirkEq4Fftg== X-Received: by 2002:a05:6e02:b4a:b0:35f:ec54:2157 with SMTP id f10-20020a056e020b4a00b0035fec542157mr19691223ilu.69.1703965314308; Sat, 30 Dec 2023 11:41:54 -0800 (PST) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id f17-20020aa79d91000000b006d9accac5c4sm12171000pfq.35.2023.12.30.11.41.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 11:41:53 -0800 (PST) From: Jack Kamm To: emacs-orgmode@gnu.org Subject: Month-week and quarter-week datetrees (RFC and package announcement) Date: Sat, 30 Dec 2023 11:41:53 -0800 Message-ID: <878r5b1nr2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::12d; envelope-from=jackkamm@gmail.com; helo=mail-il1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Spam-Score: -6.58 X-Spam-Score: -6.58 X-Migadu-Queue-Id: 01D3A46294 X-Migadu-Scanner: mx11.migadu.com X-TUID: Mu7052IXTy7r I have started a package that defines org-capture datetrees following year-quarter-week and year-month-week formats: https://gitlab.com/jackkamm/org-grouped-weektree I'd appreciate feedback on 2 points: 1. Are any of these datetree formats worth upstreaming into org-mode proper? 2. Can we add a public interface for `org-datetree--find-create', and are there any suggestions on how to do it? Regarding #2, an ugly aspect of my current implementation is the abuse of the private function `org-datetree--find-create'. I also pass in the week or quarter for the DAY and MONTH arguments of this function, though I note that `org-datetree-find-iso-week-create' does something similar in its implementation.