From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-agenda-todo-list-sublevels and tags-todo Date: Sat, 27 Jun 2009 12:09:56 +0200 Message-ID: <983221C7-EB26-4277-9880-BFF6AECD7DC4@gmail.com> References: <4A44FEE1.2020808@arcor.de> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKUrF-0007FS-Am for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 06:10:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKUrA-0007F9-7f for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 06:10:04 -0400 Received: from [199.232.76.173] (port=44460 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKUr9-0007F6-W5 for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 06:10:00 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:38072) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MKUr9-00039n-IS for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 06:09:59 -0400 Received: by ewy4 with SMTP id 4so1633803ewy.42 for ; Sat, 27 Jun 2009 03:09:58 -0700 (PDT) In-Reply-To: <4A44FEE1.2020808@arcor.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Patrick Bahr Cc: Org Mode List On Jun 26, 2009, at 7:01 PM, Patrick Bahr wrote: > Hello, > > I use tags-todo searches in my custom agenda commands. > Unfortunately, tags-todo > does not honour the org-agenda-todo-list-sublevels variable which I > want to use > in order to ignore nested todo items. Is there a way to persuade > tags-todo to do > this? I know that there is a variable org-agenda-tags-todo-honor- > ignore-options > which does this for org-agenda-todo-ignore-with-date etc. It would > be nice if > there is something similar to this for org-agenda-todo-list-sublevels. You know, interesting that you bring this up. Not showing sublevels is something from the early days of Org-mode. For a simple tag search, this might have made some sense. However, I was afraid that TODO items could get missing when turning this on, so when we do a tags search that should list TODO entries only, Org assumes that this is really a TODO search and *forces* listing sublevels. First of all, for tag searches, there is a separate variable org-tags-match-list-sublevels which must be used. However, as I said, the value is currently overruled during tags-todo searches. > Even > better would be if this could be adjusted per individual tags-todo > search. For > example for certain cases I do not want to see nested TODO items but > I do want > to see nested WAITING items. With two tags-todo searches having > different > behaviour on nested todo items this would be feasible. I am now removing this restriction (hoping that no-one relies on it), so setting the above variable should now work. In fact I would urge you to *not* set it to nil globally, but to *only* set it for specific searches, by using the options section of the custom agenda command. See Matt's excellent tutorial http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php for example on how to do this. HTH - Carsten