From: Garjola Dindi <garjola@garjola.net>
To: Liu Hui <liuhui1610@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda-tag-filter-preset: maybe a recent bug?
Date: Tue, 18 Oct 2022 18:33:44 +0200 [thread overview]
Message-ID: <8735blhz13.fsf@pc-117-162.gandi.net> (raw)
In-Reply-To: <87zgdter68.fsf@gmail.com> (Liu Hui's message of "Tue, 18 Oct 2022 11:39:27 +0800")
On Tue 18-Oct-2022 at 05:39:27 +02, Liu Hui <liuhui1610@gmail.com>
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
--
prev parent reply other threads:[~2022-10-18 16:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 17:08 org-agenda-tag-filter-preset: maybe a recent bug? Garjola Dindi
2022-10-18 3:39 ` Liu Hui
2022-10-18 16:33 ` Garjola Dindi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735blhz13.fsf@pc-117-162.gandi.net \
--to=garjola@garjola.net \
--cc=emacs-orgmode@gnu.org \
--cc=liuhui1610@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).