From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: tags-todo error with #+FILETAGS: inheritance Date: Wed, 16 Aug 2017 11:46:11 +0200 Message-ID: <87shgr6e1o.fsf@free.fr> References: <874lt89fi2.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhuuT-0002UO-H9 for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 05:46:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhuuQ-0006C7-Dv for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 05:46:45 -0400 Received: from [195.159.176.226] (port=40158 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhuuQ-0006Bf-6j for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 05:46:42 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhuu6-0007sL-1e for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 11:46:22 +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: emacs-orgmode@gnu.org Just correcting an error in the title to something more relevant. > 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: > > --8<---------------cut here---------------start------------->8--- > (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) > --8<---------------cut here---------------end--------------->8--- > > > with the following test-todo.org : > > --8<---------------cut here---------------start------------->8--- > #+FILETAGS: enseignement > * Contenu > ** TODO Cours électrocinétique > --8<---------------cut here---------------end--------------->8--- > > The agenda called by "org-agenda w t" displays the "Cours > électrocinétique" (as it should) but also the "Contenu" even though 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 > > Julien.