emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tags-todo error with #+FILETAGS: enseignement
@ 2017-08-16  6:46 Julien Cubizolles
  2017-08-16  9:46 ` tags-todo error with #+FILETAGS: inheritance Julien Cubizolles
  2017-08-17 13:20 ` tags-todo error with #+FILETAGS: enseignement Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Julien Cubizolles @ 2017-08-16  6:46 UTC (permalink / raw)
  To: emacs-orgmode


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 <mail@nicolasgoaziou.fr>
Date:   Tue Apr 18 11:55:27 2017 +0200
    org-agenda: `tags-todo' command type includes DONE keywords

Julien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tags-todo error with #+FILETAGS: inheritance
  2017-08-16  6:46 tags-todo error with #+FILETAGS: enseignement Julien Cubizolles
@ 2017-08-16  9:46 ` Julien Cubizolles
  2017-08-17 13:20 ` tags-todo error with #+FILETAGS: enseignement Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2017-08-16  9:46 UTC (permalink / raw)
  To: emacs-orgmode

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 <mail@nicolasgoaziou.fr>
> Date:   Tue Apr 18 11:55:27 2017 +0200
>     org-agenda: `tags-todo' command type includes DONE keywords
>
> Julien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tags-todo error with #+FILETAGS: enseignement
  2017-08-16  6:46 tags-todo error with #+FILETAGS: enseignement Julien Cubizolles
  2017-08-16  9:46 ` tags-todo error with #+FILETAGS: inheritance Julien Cubizolles
@ 2017-08-17 13:20 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2017-08-17 13:20 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Hello,

Julien Cubizolles <j.cubizolles@free.fr> 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 électrocinétique
>
> 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 <mail@nicolasgoaziou.fr>
> 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,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-17 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16  6:46 tags-todo error with #+FILETAGS: enseignement Julien Cubizolles
2017-08-16  9:46 ` tags-todo error with #+FILETAGS: inheritance Julien Cubizolles
2017-08-17 13:20 ` tags-todo error with #+FILETAGS: enseignement Nicolas Goaziou

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