Hi all, Please find attached a patch to add a new function org-agenda-filter-set which allows you to specify the same strings as in the org-agenda-filter prompt directly from Lisp. It allows you to do things like: (org-agenda-filter-set "-@foo-bar") Before, this would have involved doing more of the heavy lifting manually using org-agenda-filter-apply. Best regards, Stefan Kangas