From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iJWQFUUBt2XxNAAA62LTzQ:P1 (envelope-from ) for ; Mon, 29 Jan 2024 02:37:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iJWQFUUBt2XxNAAA62LTzQ (envelope-from ) for ; Mon, 29 Jan 2024 02:37:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RFk9sPzD; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706492229; a=rsa-sha256; cv=none; b=o+B6tg066Cv53cL6FAHKSlf/XBZd+FQhzPnVcefFgDc1JPxavx4UhJTVLoNSJXSfrdLzOh KThPHW2q6+WQwsDtZCuTwAA9HtP2JKnU9s/sT9djKeBbcQDnEBJAy7EnoG8ozG7t3AcT1H QF8W0VbYJWZIeLDjxg9qEWu0jcKVmZy8vIfzNjg26AJki7u95lZ76evssFjhtTjW9aQDYA TfYDbwqfezjLTArXmRyjPVM/1c0ouuPMQaAgTwi3B+82deHYC7VkfHUAS8VFIK16q0Axxe L2i+fgOyHeLrJuhYl0UxgzDk6PTkN2qT9F3xGtU0nDFhttnjYwfigmbUHlxOrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RFk9sPzD; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706492229; 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=DSd2DEB3MuhorP2NRM3D5hePTnFQMh/JPKoTP4skiF0=; b=jFC4NVna3yeQLW1Rs7aApt7OU7SuoEfaMqUkRPMNCwZRzNofpUEwsPRVmS5udO00vq9bbQ 38pibHllltRuK1M5aJmTaQK7ow+BtzN8N52/4jGnRHi8CRSj7GviUpu6bd7Nu1/1ePK81T Tgek9yxXeZgd+OIS0RPDa5wk8EiCG9Xh/CamgHVzxQB3v6tinz6014r1wvdHSWbCqxQP2K ea049/j56I8MouJOEgu8xKokcVcV5ClRw1tgKGJ6/KL8Ht6JJdNoTVGqm+yIxBvdr0mzxd ENYGW4Y9ECt+Il8rSnad11KuMcv9u80o70Wu3fl3oyvBpuzqt4A0kiQu+43bbw== 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 197A87390F for ; Mon, 29 Jan 2024 02:37:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUGZG-00065C-Ep; Sun, 28 Jan 2024 20:36:10 -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 1rUGZF-00063r-Io for emacs-orgmode@gnu.org; Sun, 28 Jan 2024 20:36:09 -0500 Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUGZD-0004tj-U5 for emacs-orgmode@gnu.org; Sun, 28 Jan 2024 20:36:09 -0500 Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-7d2dfe862c2so398557241.2 for ; Sun, 28 Jan 2024 17:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706492166; x=1707096966; 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=DSd2DEB3MuhorP2NRM3D5hePTnFQMh/JPKoTP4skiF0=; b=RFk9sPzD4vgl9Oq8E96YSR0z+FONW8f8iHxiSRVP0yBuv15CIKB0LYW3WJwVpeGewo YA8pfnYJrA6rEhYCU2XlNN2WRAsfEIm+csDPG4t1gejY8UujQTKPZi+7ym/snx5zndoO 8OCnTzcBS+WdX4Y5wEMeQbISZjhjy0fb/CiTm3vwqDvJOt0LYMJrn069DskBafR6QqEM UvZYo8BSmpY+HIS6rlK8+cuQV583Hi6akBM96085xmJPKjFkxTTDDF77ne+f53iG/h24 DTmCrdGi3dQ1wgropmt0NFHoqRVwUj/uk6gxATfsxISpdMFaAc9n2ZKLwz4+mNpWcFOz 0cLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706492166; x=1707096966; 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=DSd2DEB3MuhorP2NRM3D5hePTnFQMh/JPKoTP4skiF0=; b=agAZhIHIkWMFPjFnA+uiT+L1SmihABc9gKlBqwdrxWqW1/Qjtij/DJTY6sb5sgKDxd jbEnPQ2Xhij1HoC2x7B5SiL3QMFZgYcYoyPxvrDty2b6rn76gHTjXeiDsJ2R4jTPVx5A BlstoYI42itLggYfQWsQeRj3UI1laHdrcpexm4wLSIpAR2nt2d08dW6s9jKf47ga85BL xizlbiifPSc07B09NFZLpoqdp3+Qb6CznAOapbzR23ig8U97i4cc0m0534xaYETZgq0K mHPhUlX1P7hGW8emACpWQPczKfhJdqjOGHS1T8CDp3QOjFu/SLIjwySlmM8E2fWJBEk+ kzRg== X-Gm-Message-State: AOJu0YyMgq7xKXdAUsAKUOdY/k35MryW2I8zNW0SIJL5RhHs0s3ePcmt SElh1aMoMkC+C0iCYPVj6NEe8M8RGnUqWNdYalD1rlKoxcu8EFzhHk5zUQBGuvnd6Q== X-Google-Smtp-Source: AGHT+IFOjzb6Bia1vd9dJ6KpYZHl/y9oBbTtBWp58XIaY1hYT/W8j/WK32r3/oKczHsBTH8CkQ2/kw== X-Received: by 2002:a05:6102:903:b0:46b:34ea:8fcd with SMTP id x3-20020a056102090300b0046b34ea8fcdmr929482vsh.8.1706492166379; Sun, 28 Jan 2024 17:36:06 -0800 (PST) Received: from ahyatt-home.local ([190.83.214.104]) by smtp.gmail.com with ESMTPSA id fc20-20020a056130179400b007cbbc93aba1sm482734uab.5.2024.01.28.17.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 17:36:05 -0800 (PST) From: Andrew Hyatt To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Agenda clocktable & archive issue In-Reply-To: <87zfwpm6ij.fsf@localhost> (Ihor Radchenko's message of "Sun, 28 Jan 2024 22:34:44 +0000") References: <874jexnqe2.fsf@localhost> <87zfwpm6ij.fsf@localhost> Date: Sun, 28 Jan 2024 21:36:00 -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::932; envelope-from=ahyatt@gmail.com; helo=mail-ua1-x932.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-Scanner: mx10.migadu.com X-Spam-Score: -9.97 X-Migadu-Queue-Id: 197A87390F X-Migadu-Spam-Score: -9.97 X-TUID: xAeAkj/hTDvy --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Andrew Hyatt writes: > >>> AFAIK, clocktable scope in agenda is controlled by the agenda's scope. >>> If you have `org-agenda-archives-mode' enabled, archives will contribute >>> to the agenda report as well. >> >> Thank you, I indeed didn't know that, and it did help. After some >> digging around, it seems like the way to set this as a default is to set >> (setq org-agenda-archives-mode t), which is a bit sketchy, since >> normally you wouldn't set modes with setq, but by calling the mode. I >> think this could be improved on, so I can send a patch for this if you >> agree. > > The normal way is in org-agenda-hook - org-agenda-archives-mode it is a minor mode. > > 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-org-agenda-start-with-archives-mode.patch Content-Description: patch for org-agenda-start-with-archives >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 --- lisp/org-agenda.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 20da364b5..92657aa86 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -1102,6 +1102,11 @@ 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." + :group 'org-agenda-startup + :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 +2377,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) --=-=-=--