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 QEq6Bh/YTmPqIwAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 18:45:19 +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 4LLABh/YTmOu6QAA9RJhRA (envelope-from ) for ; Tue, 18 Oct 2022 18:45:19 +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 AA92FCB29 for ; Tue, 18 Oct 2022 18:45:18 +0200 (CEST) Received: from localhost ([::1]:53200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okpiO-0002WP-K7 for larch@yhetil.org; Tue, 18 Oct 2022 12:45:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okpXO-0002SW-4v for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 12:33:54 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okpXL-0001tC-EM for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 12:33:53 -0400 Received: (Authenticated sender: garjola@garjola.net) by mail.gandi.net (Postfix) with ESMTPA id A77801BF216; Tue, 18 Oct 2022 16:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=garjola.net; s=gm1; t=1666110826; h=from:from: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; bh=xodyBt5e9whGM+3TEs0l8GN3fxMGZJm0RNp6Xh8fjP4=; b=O9ZuJck4jk+5B5/oe8OtpvrnMt2oZWYxNbYZxczKcJEFUc1sA2TLRXFDMeSIS5qj/YDUzx 1iS0frKsVjRX6Sq8CnTW64HEpVS2vUhTJYTrdqQXpzX9X9aEYgPUj1P9RDwhqx2NpfcZF0 Y/30tJMkbQV0sQiMY+7r1mOb3hdY0Y6KvX0qc0YWnKvljg2FtSjFOgt+Kble6XZFIR+yn/ urYKEBVshU8oZqWAuTkAvqxYZOLDOcotTLeEiu5tM35B/Szawq1v7RP2m5tE09iuQ0yktH Q9BBCIni+CxM+CzEZJnvYdNYcT6ZNhx4q2t1VU4vEbDjTh43A8MiM9OrtTsWGg== From: Garjola Dindi To: Liu Hui Cc: emacs-orgmode@gnu.org Subject: Re: org-agenda-tag-filter-preset: maybe a recent bug? In-Reply-To: <87zgdter68.fsf@gmail.com> (Liu Hui's message of "Tue, 18 Oct 2022 11:39:27 +0800") References: <87zgdter68.fsf@gmail.com> Date: Tue, 18 Oct 2022 18:33:44 +0200 Message-ID: <8735blhz13.fsf@pc-117-162.gandi.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=garjola@garjola.net; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666111518; 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=xodyBt5e9whGM+3TEs0l8GN3fxMGZJm0RNp6Xh8fjP4=; b=u86e4foOAouLh/K8La27YNPgi4tUSdImRWTBtRmgWeJdn8mwgj4JRo+UhbdfojDydblFLN LVG4Eur0pNmIheQgjJ1zPzmnue9vcW3mHGj1Z98mWiYPTw2JbUpCWh9EIObR9/L4vBwDMa 2djyw0N/V9QzjcACNmwl535XWcXX7OfhiYe1nTLQWHVbRUq0qb8RX+/sTAcQXVVExHhS66 tXT4dQq/P43d2Ucp1Ll8Z+lVjNTNEg8xHcvhjhZgItFhLzsJY941L3guvB220W+Ly8Z5Ax x7J/tDZGI1pctk78xm0Ui5PQAfOytWTxHNE4u+ObY3nXpne+hhak/n9NmOjUJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666111518; a=rsa-sha256; cv=none; b=fPMOe9wyXGWDGpGgyXWh1DZWXbuM9ZqWWlNiMlTauTdWZxKKRLx+VjjdwlC99MUMu8hCOf 9C4d6cVuEfjOrr/eZbHU/jp2nf4ZoJotOp3/u7s2p1VZTTcdZ4Mgy2RIa4w4R5ODGINvNb cZYbNkXmBmomGNjqk+t2aV6ZXJ7rkKSgQaXZk9jt7zF0UNnL7wDSPNxY8gqrRnhuW+dSMP clCpAbpnH5zVMteTd3ElZyMCoq/xIFZBEA5wk3otSd80ALwHwahQD/efWXU1DoSaFUN65M 0xzZDAqYFjvPwcuVPIAtIOciq3VV5fPihJZvHhKtm7LFsF1qS81NpRyPNS6Riw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=garjola.net header.s=gm1 header.b=O9ZuJck4; dmarc=none; 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: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=garjola.net header.s=gm1 header.b=O9ZuJck4; dmarc=none; 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: AA92FCB29 X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: yfiWHLPhDrYo On Tue 18-Oct-2022 at 05:39:27 +02, Liu Hui wrote: > Hi Garjola, > > The preset of filter is not supposed to be used with individual > command. The docstring of 'org-agenda-tag-filter-preset' says: > >> The preset filter is a global property of the entire agenda view. In >> a block agenda, it will not work reliably to define a filter for one >> of the individual blocks. You need to set it in the global options >> and expect it to be applied to the entire view. > > So you just need to preset the filter in the global options, e.g. > > ;; multi-block view > ("W" "Work Daily Action List" > ((agenda "")) > ((org-agenda-tag-filter-preset > (quote > ("+work"))))) > > or > > ("W" "Work Daily Action List" > agenda "" > ((org-agenda-tag-filter-preset > (quote > ("+work"))))) Hi Liu, Thank you very much for your answer. It seems that I have been using wrong agenda custom commands for several years! In any case, your suggestion solved my problem and I am back on the main branch. Thank you. Garjola --