From mboxrd@z Thu Jan 1 00:00:00 1970 From: William =?UTF-8?B?TMOpY2hlbGxl?= Subject: Globally set categories overwhelm tree inheritance Date: Wed, 02 Jan 2013 19:38:55 +0100 Message-ID: <87y5gbwhts.wl%william.lechelle@ens-lyon.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqYT6-0005h9-M9 for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 19:15:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqYT4-0007N0-2X for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 19:15:32 -0500 Received: from jabiru.ens-lyon.fr ([140.77.51.2]:42692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqYT3-0007Mp-SI for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 19:15:30 -0500 Received: from localhost (localhost [127.0.0.1]) by jabiru.ens-lyon.fr (Postfix) with ESMTP id DAE351EB2E2 for ; Thu, 3 Jan 2013 01:15:27 +0100 (CET) Received: from jabiru.ens-lyon.fr ([127.0.0.1]) by localhost (jabiru.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OY-OeyT45VxZ for ; Thu, 3 Jan 2013 01:15:27 +0100 (CET) Received: from villian.umontreal.ca (was59-1-82-226-113-227.fbx.proxad.net [82.226.113.227]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by jabiru.ens-lyon.fr (Postfix) with ESMTPSA id 8AFDA1EB2F8 for ; Thu, 3 Jan 2013 01:15:27 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Happy new year list :) Constructing a custom agenda using (org-entry-get (point) "CATEGORY" t) in an org-agenda-skip-function, I found a rare case of strangely inherited property, when a #+Category:foo line is present (at the top of the file) : If an entry has no property drawer, it correctly inherits its CATEGORY property from its hierarchy, but if it *has* one, *not* featuring a category property, then the #+Category one supersedes that of the entry's hierarchy. I know #+Category is obsolete, and for subtree-category differentiation properties are the way to go, but I thought of it as a file-local fallback value, and apparently it's not reliable for this either, as it infringes inheritance logic when property drawers are present. Reporting just in case someone else still uses #+Category and bumps into it.