[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-orgmode] Categories in tags-TODO agendas

From: Carsten Dominik
Subject: Re: [Emacs-orgmode] Categories in tags-TODO agendas
Date: Thu, 25 May 2006 06:01:03 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]