[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-agenda-tag-filter-preset: maybe a recent bug?
From: |
Garjola Dindi |
Subject: |
Re: org-agenda-tag-filter-preset: maybe a recent bug? |
Date: |
Tue, 18 Oct 2022 18:33:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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
--