From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: Re: Categories in tags-TODO agendas Date: Thu, 25 May 2006 10:56:06 -0700 Message-ID: <4475EFB6.3050901@gmail.com> References: <4474C049.1070809@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FjK4A-0001QT-JO for emacs-orgmode@gnu.org; Thu, 25 May 2006 13:56:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FjK48-0001Pk-NK for emacs-orgmode@gnu.org; Thu, 25 May 2006 13:56:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjK48-0001Pa-KB for emacs-orgmode@gnu.org; Thu, 25 May 2006 13:56:08 -0400 Received: from [208.97.132.5] (helo=randymail-a7.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FjK8q-0001uI-Lz for emacs-orgmode@gnu.org; Thu, 25 May 2006 14:01:00 -0400 In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org The patch did the trick, and I now see the need for the different inheritance behaviors. Thanks, Dan -- ** TODO Learn Emacs Lisp Carsten Dominik wrote: > Hi Daniel > > On May 24, 2006, at 22:21, Daniel J. Sinder wrote: > >> >> I've recently encountered one bug and one inconsistency (I'm up to >> date with 4.33). >> >> Here's the bug: After generating the first weekly agenda and >> quitting it, subsequent tag-search agendas result in the same >> CATEGORY label on all entries regardless of the CATEGORY label on >> the file that produced the entry. Subsequent weekly agendas still >> show the correct categories however. (It's not obvious to me if >> there's any consistency as to *which* file's category is selected >> for the tag searches.) > > > > I guess this should be the last file in the org-agenda-file-list? > > Please try the following patch which should fix this bug, thank you for > the report! > > --- org.el.orig Wed May 24 11:39:48 2006 > +++ org.el Thu May 25 00:00:30 2006 > @@ -7596,6 +7561,8 @@ > (with-current-buffer buffer > (unless (eq major-mode 'org-mode) > (error "Agenda file %s is not in `org-mode'" file)) > + ;; FIXME: check if adding this solves the category problem > + (setq org-category-table (org-get-category-table)) > (save-excursion > (save-restriction > (if org-respect-restriction > >> >> And the inconsistency has to do with how tag inheritance is handled >> in tag searches. Suppose I have in one of my org files: >> * Projects >> ** Resolve inconsistency with org-mode tag searches :OrgMode: >> *** TODO Post to emacs-orgmode list :Email: >> *** TODO Write a patch for org-mode tag searches :Computer: >> >> If I do a tag query for "OrgMode" (C-c a m OrgMode), I get >> WORK: Resolve inconsistency with org-mode tag searches :OrgMode" >> (that is, the TODO items do not inherit the OrgMode tag). >> >> However, if I do a TODO-only tag query for "OrgMode" (C-c a M >> OrgMode), I get both sub-headlines: >> WORK: ..TODO Post to emacs-orgmode list :Email: >> WORK: ..TODO Write patch for org-mode tag searches :Computer >> >> I think these two should behave more alike with regard to tag >> inheritance. I personally prefer the latter approach, wherein >> inherited tags are included in the results. > > > Please take a look at the variable org-tags-match-list-sublevels. > > - Carsten >