emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: d.tchin <d.tchin@voila.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Property inheritance in Org-collector
Date: Sat, 8 Jan 2011 12:41:29 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110108T131445-721@post.gmane.org> (raw)
In-Reply-To: 4D2822F4.2020904@christianmoe.com

Christian Moe <mail <at> 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.

  reply	other threads:[~2011-01-08 12:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-08  8:40 Property inheritance in Org-collector Christian Moe
2011-01-08 12:41 ` d.tchin [this message]
2011-01-08 21:17   ` Eric Schulte
2011-01-11 14:21     ` d.tchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110108T131445-721@post.gmane.org \
    --to=d.tchin@voila.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).