[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: does #+PROPERTY still exist ?
From: |
Nick Dokos |
Subject: |
Re: [Orgmode] Re: does #+PROPERTY still exist ? |
Date: |
Wed, 22 Sep 2010 03:36:46 -0400 |
Noorul Islam K M <address@hidden> wrote:
> Nick Dokos <address@hidden> writes:
>
> > Vincent Belaïche <address@hidden> wrote:
> >
> >> In the org manual node `(org) Property syntax' one can read the
> >> following:
> >>
> >>
> >> --8<-------------coupez ici--------------début-------------->8---
> >> If you want to set properties that can be inherited by any entry
> >> in a file, use a line like
> >> #+PROPERTY: NDisks_ALL 1 2 3 4
> >> --8<-------------coupez ici---------------fin--------------->8---
> >>
> >> However this does not seem to work.
> >
> > In what way does it fail to work?
> >
> > AFAICT, it works as advertised: after inserting the above line, I try to
> > insert a NDisks property with
> >
> > C-c C-x p NDisks<RET>5<RET>
> >
> > and it complains ("No match"). If I use e.g. 3 instead of 5, the
> > property is inserted.
> >
>
> In the below example
>
> ----------------------------------------------------------------
> #+PROPERTY: Age 25
> #+COLUMNS: %25ITEM %Age
>
> * Heading 1
> * Heading 2
> ----------------------------------------------------------------
>
> When I try to use column view to edit the property it is not using the
> format that I mentioned at the file level.
>
> But the following one works
>
> ----------------------------------------------------------------
> * Heading 1
> :PROPERTIES:
> :Age: 25
> :COLUMNS: %25ITEM %Age
> :END:
> * Heading 2
> ----------------------------------------------------------------
>
> Looks like the file level settings are not working.
>
If I evaluate the form
(org-entry-get (point) "Age" t)
with the point at any heading, I get "25". OTOH, even with
org-use-property-inheritance set to t, column view does not
show it. Ergo, it's a column view bug.
In org-columns-compute, I see
...
(while (re-search-backward re beg t)
(setq sumpos (match-beginning 0)
last-level level
level (org-outline-level)
val (org-entry-get nil property)
...
I suspect the val line needs to be
val (org-entry-get nil property org-use-property-inheritance)
instead.
HTH,
Nick