[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: does #+PROPERTY still exist ?
From: |
Noorul Islam |
Subject: |
[Orgmode] Re: does #+PROPERTY still exist ? |
Date: |
Wed, 22 Sep 2010 14:26:50 +0530 |
On Wed, Sep 22, 2010 at 2:13 PM, Noorul Islam K M <address@hidden> wrote:
> Nick Dokos <address@hidden> writes:
>
>> Nick Dokos <address@hidden> wrote:
>>
>>> Noorul Islam K M <address@hidden> wrote:
>>>
>>> >
>>> > 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.
>>>
>>
>> No, that's not it. I think the basic problem is that
>> org-entry-properties ignores inheritance altogether (in particular,
>> it parses property names explicitly instead of using org-entry-get)[1].
>>
>> Nick
>>
>> [1] ... but it's late, I'm tired and I may very well be wrong - again.
>
> Well, following one works. It looks like we need _ALL suffix for
> inherited properties.
>
> ----------------------------------------------
> #+COLUMNS: %25ITEM %10Age
> #+PROPERTY: Age_ALL 25
>
> * Heading 1
> * Heading 2
> ----------------------------------------------
>
To summarize:
Whatever Vincent said not working is working for me.
Org-mode version 7.01trans (release_7.01h.555.g90cc)
GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of
2010-01-30 on noorul
Thanks and Regards
Noorul