emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-elements-parse-buffer and weird property drawers


From: Thorsten Jolitz
Subject: Re: [O] org-elements-parse-buffer and weird property drawers
Date: Sat, 30 Aug 2014 21:46:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eike <address@hidden> writes:

> Hello all,
>
> I'm playing with the functions in org-elements.el and the following
> effect seems strange to me:
>
> I have a few propery drawers with empty propertys, like
>
> #+BEGIN_EXAMPLE
> :PROPERTIES:
> :date:     [2014-08-29 Fr]
> :chf:      21.76
> :eur:
> :END:
> #+END_EXAMPLE
>
> If I do org-elements-parse-buffer, the empty one is not there, but the
> first one is duplicated. At least, there are two node-property
> elements in the tree like that:
>
> #+BEGIN_EXAMPLE
> (node-property (:key "chf" :value "21.76" :begin 38 :end 58 :post-blank 0 
> :post-affiliated 38 :parent #4))
> (node-property (:key "chf" :value "21.76" :begin 58 :end 67 :post-blank 0 
> :post-affiliated 58 :parent #4))
> #+END_EXAMPLE


Indeed, I get

,----
| (property-drawer (:begin 24 :end 78 :contents-begin 40 :contents-end 69
| :post-blank 0 :post-affiliated 24 :parent #3) (node-property (:key "chf"
| :value "21.76" :begin 40 :end 60 :post-blank 0 :parent #4))
| (node-property (:key "chf" :value "21.76" :begin 60 :end 69 :post-blank
| 0 :parent #4)))
`----

too when parsing this 

,----
| * ORG SCRATCH
| ** Pizza
|    :PROPERTIES:
|    :chf:      21.76
|    :eur:
|    :END:
`----

looks like a bug to me.

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]