From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: tags-todo error with #+FILETAGS: enseignement Date: Thu, 17 Aug 2017 15:20:53 +0200 Message-ID: <87ziaypbyi.fsf@nicolasgoaziou.fr> References: <874lt89fi2.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diKjJ-0004Z7-Q0 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 09:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diKjI-0005ry-T8 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 09:20:57 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39861) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diKjI-0005qL-Np for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 09:20:56 -0400 In-Reply-To: <874lt89fi2.fsf@free.fr> (Julien Cubizolles's message of "Wed, 16 Aug 2017 08:46:29 +0200") 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.org@gnu.org Sender: "Emacs-orgmode" To: Julien Cubizolles Cc: emacs-orgmode@gnu.org Hello, Julien Cubizolles writes: > When an entry inherits a tag from a #+FILETAGS: line, all its parents > get matched by a tags-todo agenda, even when they don't have a todo > keyword. > > Consider the following: > > (setq org-agenda-files '("/home/wilk/tmp/test-org/test-todo.org")) > (setq org-agenda-custom-commands > (quote ( > ("wt" "Boulot" > ( > (tags-todo "enseignement") > ) > ) > ))) > (org-agenda) > > > with the following test-todo.org : > > #+FILETAGS: enseignement * Contenu ** TODO Cours =C3=A9lectrocin=C3=A9tiq= ue > > The agenda called by "org-agenda w t" displays the "Cours > =C3=A9lectrocin=C3=A9tique" (as it should) but also the "Contenu" even th= ough it > doesn't have a TODO keyword. > > The offending commit is: > > commit 942b6267a09e167ad3a546e83205601aa5c0704e > Author: Nicolas Goaziou > Date: Tue Apr 18 11:55:27 2017 +0200 > org-agenda: `tags-todo' command type includes DONE keywords Indeed. The solution is not correct. I reverted the commit above. However, the initial problem the previous patch attempted to fix is still open. As a consequence, I changed `org-scan-tags' so it also includes DONE keywords. You can filter these out with "/!" matcher syntax. We'll see how it goes. Thank you. Regards, --=20 Nicolas Goaziou