From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CCTFGCN5gGRp9gAASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 14:33:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6Ha/GCN5gGTiOAEA9RJhRA (envelope-from ) for ; Wed, 07 Jun 2023 14:33:39 +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 B6E3E385FE for ; Wed, 7 Jun 2023 14:33:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6sKh-00031s-PO; Wed, 07 Jun 2023 08:32:20 -0400 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 1q6sKT-0002qE-7T for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:31:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sKO-0006oR-Ol for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:31:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4A33324002A for ; Wed, 7 Jun 2023 14:31:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686141108; bh=/yiU8+OFrQGr/7PbbqVKM1o4KUA9KLYet0XICNNbCZ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=r1YCAJEoS49O83INjk656ptj+TX5EdR4/Cg+RllEGUgGAAuzCI0RUtJHuDInWXTPv Be6H+cpJkuMZ1GqQZz+lSk9kF6YzLZ3pcPBX8+oLv4Fn4Eizl9pe/l9ayM7UhdpKXk BeKMnzQ/UXBiJSWzqqnqWw3eVYdTotxtQ+AY+9cj8b4XsM8AJsUI9AIddJHCHk/SAa 22a+ckGSJV8rQ3hShxffpfFQYhykFI3if4+Zlk/X0QrvoicsmkRp/CTlWTsmgAIUJB exmJDwNedFPJ/uQm+pO2szGBUWcsq/bDdQjlkUVnaOFXP24TC9st8mCuqw0jcq+Rl2 HpR57f39Ptm2Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QbmtW4pd4z6tvp; Wed, 7 Jun 2023 14:31:47 +0200 (CEST) From: Ihor Radchenko To: Erik Guldberg Cc: Emacs Orgmode Subject: Re: [BUG] org-agenda-custom-commands with org-agenda-category-filter-preset not working [9.6.4 (release_9.6.4-9-g8eb209 @ /usr/local/share/emacs/29.0.90/lisp/org/)] In-Reply-To: References: Date: Wed, 07 Jun 2023 12:36:32 +0000 Message-ID: <87ilbzcuun.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686141219; 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=mwkklMXHAF79TBAf2iOq4BO0mjSa1eh0CD64Ie2I0lg=; b=Dq1qYGNfpB7sJpKVNSan77AjTB1n4Loj9oOvoybQpcjc+W15X91o0Hx8Z6CgKnPV28intt T1RMSsVgUfAv764oTMzXavUKeqDnA67iZALVyJ3LlnO/zGklDEXtjYNxoBWgw/IG1cnzsx t1GYT/p10Hhi4GtqSAftP7SwIEeFA3Vf3hPazKXHK7m9MGBKfAPqSSOkwoeR0CKcJFaLzJ Y262ARWLGDwa52NJ8QdhplVm0M8xyo34Ehk4L5zZ3AnExh48NJqLuiV8yEs1mptbkjGjiV J232aglZzjexdFUwcWf1efkFdlLugK6ZWmqad66cRL0AFcTT0xs0T8YeFuFm4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=r1YCAJEo; dmarc=pass (policy=none) header.from=posteo.net; 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=1686141219; a=rsa-sha256; cv=none; b=ZQQ/tVE+UJgcDXz4Pj/UTOCzB69DrCyMzfqkuhQQB4TdIMt2PKvpfhQXojGEfRgAum/zL1 jSYA1zlJU5O4VbUEKXAPpUQnO3Vbk8uODGSpwvuYjDF9qP2Dc5P+wnL6iqT637xwmovvpc H1CIzpb9p6xuaXLtWLXGbGZBiKEEV8tliLIgfY2tOebDNjWSbYf3UM9vXGdq/FevtpI6DB JFDJ6qRvUI/QyUvUsHZQoa0Af1a0kOVQHDbZtvHZtSVSKBumbd9qxAyXcIdcSZU1llbzFe dNKTxT32jjYGGSkgULlRu7DjxBeIlK3fWbKa/w3JjCJmAZCqMU6EeFpM7AZoKA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=r1YCAJEo; dmarc=pass (policy=none) header.from=posteo.net; 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: B6E3E385FE X-Spam-Score: -6.16 X-TUID: b4hL1CcArzKh Erik Guldberg via "General discussions about Org-mode." writes: > In every work related org-file, I set the category like this: > > #+CATEGORY: work > > I then use org-agenda-custom-commands like those below to show work related content or not work related content. This works in Org version 9.5.5/Emacs 28.2, but in Org version 9.6.4/Emacs 29.0.90, both custom-commands shows the content of every file, category "work" or not. > > I posted this on Reddit, and according to a user it can be reproduced in the stable version, while it works fine in the development version. Canceled. I was actually wrong in my initial attempt to reproduce (and reddit reply). The reason your filter is not working is that you are setting it in a composite agenda view. According to the docstring of `org-agenda-filter-preset': This variable should not be set directly, but agenda custom commands can bind it in the options section. 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. Note that the docstring explicitly warns you to set the filter in global agenda options, not within individual blocks. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at