From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Categories in tags-TODO agendas Date: Thu, 25 May 2006 06:01:03 +0200 Message-ID: References: <4474C049.1070809@gmail.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fj720-0001Ou-6H for emacs-orgmode@gnu.org; Thu, 25 May 2006 00:01:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fj71z-0001Oh-Lg for emacs-orgmode@gnu.org; Thu, 25 May 2006 00:01:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fj71z-0001Oe-EQ for emacs-orgmode@gnu.org; Thu, 25 May 2006 00:01:03 -0400 Received: from [194.134.35.149] (helo=smtp08.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fj76Z-0002NG-Ds for emacs-orgmode@gnu.org; Thu, 25 May 2006 00:05:47 -0400 In-Reply-To: <4474C049.1070809@gmail.com> 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: "Daniel J. Sinder" Cc: emacs-orgmode@gnu.org 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