emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Liu Hui <liuhui1610@gmail.com>
To: garjola@garjola.net
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda-tag-filter-preset: maybe a recent bug?
Date: Tue, 18 Oct 2022 11:39:27 +0800	[thread overview]
Message-ID: <87zgdter68.fsf@gmail.com> (raw)
In-Reply-To: <87y1tenzsf.fsf@pc-117-162.gandi.net>


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")))))


  reply	other threads:[~2022-10-18  3:40 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 [this message]
2022-10-18 16:33   ` Garjola Dindi

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=87zgdter68.fsf@gmail.com \
    --to=liuhui1610@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=garjola@garjola.net \
    /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).