From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MAFlIx7JCGMMhAAAbAwnHQ (envelope-from ) for ; Fri, 26 Aug 2022 15:22:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IExSIx7JCGMw2wAA9RJhRA (envelope-from ) for ; Fri, 26 Aug 2022 15:22:38 +0200 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 1F4292FDE7 for ; Fri, 26 Aug 2022 15:22:38 +0200 (CEST) Received: from localhost ([::1]:33342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRZIC-0008Qj-Si for larch@yhetil.org; Fri, 26 Aug 2022 09:22:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRZFd-0008OU-38 for emacs-orgmode@gnu.org; Fri, 26 Aug 2022 09:19:57 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:40843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRZFb-0003Sn-52; Fri, 26 Aug 2022 09:19:56 -0400 Received: by mail-pj1-x102c.google.com with SMTP id t11-20020a17090a510b00b001fac77e9d1fso8043553pjh.5; Fri, 26 Aug 2022 06:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=Nu13oaqNR/kCyq7Yo0V7plVBwoy304Lnb3dzXUU9JX0=; b=j9SSJHWef49bA/kfGbSMRjSlnz4rFnbfPmDUGjY3NYOBowjF3GuI9qZlwLtTO/VaBD Wuefr8bC3TTnDbavyVxx6+X5cnml4qkaYsVxpJSOeJMBambsnmjXMLNMaj3TLPxLeG2F +bnFx7m/I7S8+jqf3XH/GW+OmmAqDTEWTRX7eBziLDhWEPkCbLeUylVcFvIOICgiIayT N1MNAHKRrAxJcL131OKwwa9U7fqNEniNj15VZf5m8HQ9hkQx1LFSAnr5f2Vtd+nMCwyE gbKtcoTTdoAwcVFe+3U/nRoLiRNrMFe2b2klmI9N6qgcDVQ3R8yphvL3LFLS3MmQfvmz 4vVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Nu13oaqNR/kCyq7Yo0V7plVBwoy304Lnb3dzXUU9JX0=; b=NGd0bUDXlnNPq09D1ReJW08y4xcPh2/u5Lo5itzs4a0uPTF7N/JfGG108f/a94mxsd iUaI/Og3QGNyMKHfx5qp7MSRbXy+58MuWCOY6cMYAmAWdar7PBYS6HCisIGUCF56b5EY 8kGzoxDw0mP0T7JDuHXkK/JZX/b12dieJKA9zYNJ2NtFrFq44i/9QZbJhLm4U9dMCneC VK27/VPRU49RXpVYvDqFne7H+BOBgjR4FoQwLobLA+/3RPcovFXapmPZftnQS4cNnYSW qm/kFC5uSpqyLSevBpTgWANrrIcF2R000J3mO/ULrAvhgRPJbRRM+M8HIx12ieUCwbaT kQWA== X-Gm-Message-State: ACgBeo0IPnlgHHgfiToqDsOKSPckZD5+4YE2wLRanHLfPc4oM8M5/7s6 C7v3sjep4J9mVddxsdWIfFg= X-Google-Smtp-Source: AA6agR5GX9KkXNLKmLHRnxXatNDVkKUtW0RPr24K5byYr8NfWRAjoSI8UwsRoQxyQRNkqH5yeCuO7A== X-Received: by 2002:a17:902:cec4:b0:172:f71b:9364 with SMTP id d4-20020a170902cec400b00172f71b9364mr3764972plg.132.1661519993110; Fri, 26 Aug 2022 06:19:53 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n5-20020a170903404500b0017128185043sm1507066pla.191.2022.08.26.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 06:19:52 -0700 (PDT) From: Ihor Radchenko To: John Young , Bastien Cc: "emacs-orgmode@gnu.org" Subject: Re: Filtering agenda clockreport not working? In-Reply-To: <2a1b0eb3-c080-42dc-abc2-be84db5b5033@Spark> References: <9beec8b3-321b-43ee-931c-e735cc2c90fa@Spark> <2a1b0eb3-c080-42dc-abc2-be84db5b5033@Spark> Date: Fri, 26 Aug 2022 21:20:50 +0800 Message-ID: <87a67rxhsd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661520158; 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=Nu13oaqNR/kCyq7Yo0V7plVBwoy304Lnb3dzXUU9JX0=; b=ZVzB3eiCagWfnVSY+AF844h87gSribrb2bQyXruHCP/3E7RxwvxzAdv8uaPvo9weOKz723 OXlVpNAxdZVI+hjzLJQTC3NhfnOtmc/n50ZfcQkEJsLkfT5dE0TIP29xTTjBfaeIAS5zad /nCJAdMLM808cLWXIxHb1iluvmqxYj2ue63MJLcqrrnWJk+EallGraBW2XpvfI2hqnZ+Py TCl3unLWOu1n/WakBOqHyvUNE0D3TepVpbgLigOGWOjGS3UEuDodyN47F36sMvFki4rWHg CjADH8vJUYs+JyxH8Urh9gXF3osS7hz5B/JLuO+DEj9kFFVkK/Uck/Nn8nBEiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661520158; a=rsa-sha256; cv=none; b=QKgHSELr5V/gHmbNxWcb2p7JqNm8qm1JmqEXZk+pd7giKSWIErGB+1PBMCZ9kxAfvWP4P7 74pm84bT4tWd8baZiYZxYT/LaHcE1hdnZcg9vQm5hwnE8o+QHCYO2VEWhfVSCi1TUoJOb4 HwUGXqmCYMVR3RbtLu5TUZv/ajJsChgvE9mRdFurkpO9572l9LKENr1wo/69GrA4X6vKgw 8XGCtLFBkc5bVsmIwoNJYUtSTglELYAIlYZVVZHI51PZ44ZPyyZXJ5jl+SCUR8cvv0LaXN TlKr1jPJset2b4dyQ0gZJRlFUw3to6PK7Re4cbE95Ts5x/1IBcKFoXEySz8uiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j9SSJHWe; 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" X-Migadu-Spam-Score: -7.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j9SSJHWe; 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" X-Migadu-Queue-Id: 1F4292FDE7 X-Spam-Score: -7.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xa3Q1w8wx82B John Young writes: > In the org mode manual the description for org-agenda-clockreport-mode st= ates that using a prefix argument when toggling this mode (i.e. typing =E2= =80=9CC-u R=E2=80=9D) causes the clock table to exclude contributions to en= tries hidden by agenda filtering (as activated by typing =E2=80=9C/=E2=80= =9C). I have tried this with a tags filter active, and the clock table is t= he same as when I don=E2=80=99t use a prefix argument. If I have clocked ta= sks tagged with a filtered out tag, they are still included in the agenda c= lock table. > > I looked at the source code for the org-agenda-clockreport-mode function = in org v9.5.4, and it appears that any prefix argument is ignored. > > Am I misunderstanding something, or could this be a bug? It looks like this functionality has been accidentally removed when fixing some bug. The culprit is >> 2e9c2d7128e0491491d00b585be83ac688587d00 >> Author: Bastien Guerry >> AuthorDate: Thu Jun 12 15:07:35 2014 +0200 >> Commit: Bastien Guerry >> CommitDate: Thu Jun 12 15:07:35 2014 +0200 >> org-agenda.el: Fix bug when redoing sticky agendas with log mode and/or = clockreport mode on >>=20 >> * org-agenda.el (org-agenda-mode): Let `org-agenda-redo' DTRT >> when agenda are sticky. >> (org-agenda-tag-filter-while-redo): Delete. >> (org-agenda-list, org-agenda-redo, org-agenda-filter-by-tag): >> Remove unused code. >> (org-agenda-clockreport-mode, org-agenda-set-mode-name): Don't >> consider tag filters. >>=20 >> Thanks to Bernt Hansen for reporting this. Bastien, we usually do not remove the existing feature. Do you remember if this was intentional, or should we reconsider that bugfix? Given that relevant bug report only surfaced now, this feature may not be something people are really relying upon. So, deleting the mention in the manual might also be a valid option. --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92