From mboxrd@z Thu Jan 1 00:00:00 1970 From: d.tchin Subject: Re: Property inheritance in Org-collector Date: Sat, 8 Jan 2011 12:41:29 +0000 (UTC) Message-ID: References: <4D2822F4.2020904@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbY77-00005e-Bp for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 07:41:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbY75-0007HL-Sg for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 07:41:45 -0500 Received: from lo.gmane.org ([80.91.229.12]:35013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbY75-0007Gq-Fu for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 07:41:43 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PbY72-0002xr-86 for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 13:41:40 +0100 Received: from APuteaux-651-1-138-140.w86-217.abo.wanadoo.fr ([86.217.97.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 13:41:40 +0100 Received: from d.tchin by APuteaux-651-1-138-140.w86-217.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 13:41:40 +0100 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: emacs-orgmode@gnu.org Christian Moe christianmoe.com> writes: > > Hi, > > I'm trying to use an Org document as the database for a textbook > analysis and Org-collector.el to output reports. > > With org-use-property-inheritance set to `t', and working in sparse > trees, I fail to get inherited properties to show up in the dynamic > block: the value returned is 0. Is this the expected behavior, and is > there any way to change things so I can get inherited properties? > I am interested by this too. I tried to have inherited properties and had the same problem whereas I fixed org-use-property-inheritance to 't. I test that inheritance work with the following test : * Inheritance #+BEGIN: propview :cols (ITEM test) :scope tree :conds ((string= test "appear")) | "ITEM" | "test" | |---------------+----------| | "First level" | "appear" | |---------------+----------| | | | #+END: #+BEGIN: propview :cols (ITEM CATEGORY) :scope tree :conds ((string= CATEGORY "level")) | "ITEM" | "CATEGORY" | |----------------------+------------| | "First level" | "level" | | "Test inheritance 1" | "level" | | "Test inheritance 2" | "level" | |----------------------+------------| | | | #+END: ** First level :PROPERTIES: :test: appear :CATEGORY: level :COLUMNS: %34ITEM %plats %ingredient :END: *** Test inheritance 1 (org-entry-get (point) "test" t) **** Test inheritance 2 (org-entry-get (point) "test" t) ** Second level *** Test inheritance 3 (org-entry-get (point) "test" t) I expect to have the same behavior for CATEGORY and test properties. If you evaluate lisp expression you will notice that inheritance seems to works.