From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Schwarzgruber Subject: Re: Org agenda -- checking for invisible tasks after filtering... Date: Mon, 17 Feb 2020 16:49:09 +0100 Message-ID: <87r1ytb4ei.fsf@gmail.com> References: <87bls9kayb.fsf@gmail.com> <87imknmpv3.fsf@gnu.org> <87v9o6c017.fsf@gmail.com> <87blpyqelj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49349) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3ie2-0003F2-Kp for emacs-orgmode@gnu.org; Mon, 17 Feb 2020 10:49:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3ie1-0003ch-J1 for emacs-orgmode@gnu.org; Mon, 17 Feb 2020 10:49:14 -0500 In-reply-to: <87blpyqelj.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org Hi Bastien, thank you! That would reduce it to one advice. However, I would still need to advice the function org-agenda-filter-apply since it doesn't call `org-agenda-finalize`. Would it make sense to call the hook org-agenda-finalize-hook at the and of org-agenda-filter-apply or perhaps add a new hook `org-agenda-filter(-(apply|after))?-hook`? Calling org-agenda-finalize at the end of org-agenda-filter-apply wont work, because org-agenda-finalize calls org-agenda-filter-apply, and hence, would result in an infinite recursion. org-agenda-filter-remove-all and org-agenda-remove-filter do call org-agenda-finalize, so this way works. Thanks Bastien Bastien writes: > Hi Christian, > > you might want to have a look at org-agenda-finalize-hook, though I'm > not sure it can help, I'm not familiar with org-super-agenda enough. > > HTH,