From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kEJyKXLXt2UeUAAA62LTzQ:P1 (envelope-from ) for ; Mon, 29 Jan 2024 17:50:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kEJyKXLXt2UeUAAA62LTzQ (envelope-from ) for ; Mon, 29 Jan 2024 17:50:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jiX5GaGy; 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=1706547058; 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=RJ6JWqxHN3JLvHIBCpguSb1doqMutGECJSWzwSsHJQc=; b=muf5kspkLsHosZakmXpmIT65vI/G9eVKJIgtEOwhnQNcKJtd9wCMQARw7HZ8fLxmFUTfeu K2y2qspLvrTzVnGRMa/Cr2Z1F0kNUCAg4vP8kEMsmVFzOA9jViqgGuey7bSnmmuxzwK6hM cHx3TIoiAUYtzBF1L/MlJKgyaEPO0e+YHzoFB3bn4W9dkI7TPssxW/e+TSfsqZr2OjuATu Gfljp++H08AOO0y7pRvDmyF/kSHXfcel86iiAFVVjvginngepJ5xq+jFeW8mICidWV/V/+ RVxsB2pA9aGdbZOzNuS3ha2hAL7EBDCz+V8TtHNgDcb6hc+B6B7AbJsW/ctMgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jiX5GaGy; 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-Seal: i=1; s=key1; d=yhetil.org; t=1706547058; a=rsa-sha256; cv=none; b=oKRcVDlEZPY3RPGaT+l7/7zlOpYmTKRN9iojPoSptz+hhBePsNQK7q57vScG/L6CAYK1tQ ac2vybOxNQ9Hiwz7sxN3Lv8NViqbZDDik5gbYx9XJvnlpLt76qsyMFOrHVx4cdyGI6DYDc ziQelgobcmofw8Sjdmkj4x72uXWwB6m5SQ8kH638xcS/rApNnjy+8IVyE5j1dc8eZBxPK6 VJuufj5/2ZStcJYQIhfnmKUJHndAENBhF4pfIs7BsCqF1/pCnmVPCZkAp3LqVjpfp+LS9d 9tHTIkjrdM7nzZiaojRoVqKGp9CClNsE8LN7SfE3Y1pZMOi6+4PYtjOubJYFxQ== 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 4EC1E15681 for ; Mon, 29 Jan 2024 17:50:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUUnm-0003Hx-Ay; Mon, 29 Jan 2024 11:48:06 -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 1rUUmX-0007YU-E2 for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 11:46:50 -0500 Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUUmU-00041O-Ol for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 11:46:48 -0500 Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-4bd9b71456fso441407e0c.2 for ; Mon, 29 Jan 2024 08:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706546805; x=1707151605; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RJ6JWqxHN3JLvHIBCpguSb1doqMutGECJSWzwSsHJQc=; b=jiX5GaGyr6EMa8L0PwBgHKm3hJSYZTwLN+WQvdKwMcRmX9Vsdr0teb7WMlpyQNjJZf fUwY1a7t9KgPUxYwSkY0Rsc+3JJ4xwqN+9yk2aViPeGBOU/hoktK8tRy/F60MkKuGYWd c7TWbNI+Q6+b+Enf87J3k6x5INSXEJqibpRPYS4QfyTxBAeaGnviURRp7IosYVoEFrGt Qayvg153ooSPzGp8B78k6uMSzcZiXVteOxHUsbcfnN2mBb1CegU4z19/CUOlpsUXlyl+ ee0O1SXjjLfWo/6u9JpRj1MZGPl5TEDq1VCc0JLJ4ALyT2PcE262vUXoBkujKrQPqKH8 0epw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706546805; x=1707151605; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RJ6JWqxHN3JLvHIBCpguSb1doqMutGECJSWzwSsHJQc=; b=AhPMS7dN+76ZEjvJSIk9IyvyfId/pWLcbIv5hXIi0CW1pWMeVUAqBmzfHpmnLaTrDl 3e+af2SGgv452N3ZifUyunlkdsf/oSqDx1+u8XhXTRojeqaiZp/z83jBG0EsON0qXkWL DzJk0ZMBgw9mQbJ0g/h61XtmJr+bTuZVkLZKOrmJ1Ho69pQZqMBunBZ3c5WqDxoWYIBu k/A2tIifsmz1j2+8CNlkCdhd1y8d4lop4c+w7BlBvkd8nR64TmhcngkiZ9b8WhfV0qKI u3quqWNwfmCL2PqqU3WNe5NxCHIKZS0/T/yqvDmBDsl4hhq9cxeE8Z9Eu/ieQvaZOKdQ /6bg== X-Gm-Message-State: AOJu0YwEu5ySc/Zd3Qfhl1U8HEFXrZiudq9ZZTs9goG8HlKv2A6X6WNX nWyZHKH9nGlOnwOsZXSyR3mfYAMx/G8SPRoAi4xBWytEpR3m4KDMQ7rgGc1HhvQ= X-Google-Smtp-Source: AGHT+IEVMAcO6kdW4sbAzfF429QVgtoup6gdgkAkCHVe1ysAL3gOAJhrs3eIMsxMwOOy8XoKYjkHww== X-Received: by 2002:a05:6122:3888:b0:4b6:d4c8:9caa with SMTP id eo8-20020a056122388800b004b6d4c89caamr2483048vkb.21.1706546804667; Mon, 29 Jan 2024 08:46:44 -0800 (PST) Received: from ahyatt-home.local ([190.83.214.104]) by smtp.gmail.com with ESMTPSA id 16-20020a9f2290000000b007d5d3dac7dbsm363457uan.3.2024.01.29.08.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:46:44 -0800 (PST) From: Andrew Hyatt To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Agenda clocktable & archive issue In-Reply-To: <87le88mghg.fsf@localhost> (Ihor Radchenko's message of "Mon, 29 Jan 2024 13:11:39 +0000") References: <874jexnqe2.fsf@localhost> <87zfwpm6ij.fsf@localhost> <87le88mghg.fsf@localhost> Date: Mon, 29 Jan 2024 12:46:40 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=ahyatt@gmail.com; helo=mail-vk1-xa2c.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: -8.48 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -8.48 X-Migadu-Queue-Id: 4EC1E15681 X-TUID: 2Eg2onFaZEs5 --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Andrew Hyatt writes: > >>> Still, I do not mind adding customization to enable it during startup, >>> similar to the existing customizations: >>> `org-agenda-start-with-log-mode', >>> `org-agenda-start-with-entry-text-mode', >>> `org-agenda-start-with-follow-mode', etc. >> >> Thank you, that makes sense. I've attached the patch. > > Thank you! > >> From 4eee33856af687564a522ab40ebed4ba5d848cf4 Mon Sep 17 00:00:00 2001 >> From: Andrew Hyatt >> Date: Sun, 28 Jan 2024 21:33:20 -0400 >> Subject: [PATCH] Add org-agenda-start-with-archives-mode > > May you please also add a proper commit message? See > https://orgmode.org/worg/org-contribute.html#commit-messages > >> +(defcustom org-agenda-start-with-archives-mode nil >> + "Initial value of archive-mode in a newly created agenda window." >> + :group 'org-agenda-startup >> + :type 'boolean) > > Please add :package-version '(Org . "9.7") keyword to indicate when the > new option is added. > > Also, please add an entry in etc/ORG_NEWS file and document the new > option in the manual (11.5 Commands in the Agenda Buffer display section) Thanks for the pointers; it's been years since my last contribution. I've attached the latest patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-org-agenda.el-Add-org-agenda-start-with-archive.patch Content-Description: path for addition of org-agenda-start-with-archives-mode >From 4798f9b7fadc078a914cd399e797084c166fd1b0 Mon Sep 17 00:00:00 2001 From: Andrew Hyatt Date: Sun, 28 Jan 2024 21:33:20 -0400 Subject: [PATCH] lisp/org-agenda.el Add org-agenda-start-with-archives-mode * lisp/org-agenda.el: Add org-agenda-start-with-archives-mode. (org-agenda-mode): Set value of org-agenda-archive-mode according to value of new variable org-agenda-start-with-archives-mode. * doc/org-manual.org: Note new variable in documentation of org-agenda-archives.mode. * etc/ORG-NEWS: Note change to add org-agenda-start-with-archives-mode. --- doc/org-manual.org | 6 +++++- etc/ORG-NEWS | 5 +++++ lisp/org-agenda.el | 11 ++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index ffb025c93..86008164e 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -10077,9 +10077,13 @@ the other commands, point needs to be in the desired line. #+kindex: v a #+findex: org-agenda-archives-mode + #+vindex: org-agenda-start-with-clockreport-mode Toggle Archives mode. In Archives mode, trees that are archived (see [[*Internal archiving]]) are also scanned when producing the - agenda. To exit archives mode, press {{{kbd(v a)}}} again. + agenda. To exit archives mode, press {{{kbd(v a)}}} again. The + initial setting for this mode in new agenda buffers can set with the + variable ~org-agenda-start-with-archives-mode~, which can be set + with the same values as ~org-agenda-archives-mode~. - {{{kbd(v A)}}} :: diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index f4e98d78b..82090df32 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -686,6 +686,11 @@ manner with ~run-python~. This allows to run functions after ~org-indent~ intializes a buffer to enrich its properties. +*** New option ~org-agenda-start-with-archives-mode~ + +This option starts the agenda to automatically include archives, +propagating the value for this variable to ~org-agenda-archives-mode~. +For acceptable values and their meaning, see the value of that variable. ** New features *** =ob-plantuml.el=: Support tikz file format output diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 20da364b5..7fe482f30 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -1102,6 +1102,14 @@ removed from entry text before it is shown in the agenda." :group 'org-agenda :type 'string) +(defcustom org-agenda-start-with-archives-mode nil + "Initial value of archive-mode in a newly created agenda window. +See `org-agenda-archives-mode' for acceptable values and their +meaning." + :group 'org-agenda-startup + :package-version '(Org . "9.7") + :type 'boolean) + (defvar org-agenda-entry-text-cleanup-hook nil "Hook that is run after basic cleanup of entry text to be shown in agenda. This cleanup is done in a temporary buffer, so the function may inspect and @@ -2372,7 +2380,8 @@ The following commands are available: (setq org-agenda-follow-mode org-agenda-start-with-follow-mode org-agenda-entry-text-mode org-agenda-start-with-entry-text-mode org-agenda-show-log org-agenda-start-with-log-mode - org-agenda-clockreport-mode org-agenda-start-with-clockreport-mode)) + org-agenda-clockreport-mode org-agenda-start-with-clockreport-mode + org-agenda-archives-mode org-agenda-start-with-archives-mode)) (add-to-invisibility-spec '(org-filtered)) (org-fold-core-initialize `(,org-link--description-folding-spec ,org-link--link-folding-spec)) -- 2.39.3 (Apple Git-145) --=-=-=--