From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-elements-parse-buffer and weird property drawers
Date: Sat, 30 Aug 2014 21:46:04 +0200 [thread overview]
Message-ID: <877g1p7ocj.fsf@gmail.com> (raw)
In-Reply-To: 87r3zxzwgz.fsf@ithaka.home
Eike <news@eknet.org> 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
next prev parent reply other threads:[~2014-08-30 19:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-30 17:56 org-elements-parse-buffer and weird property drawers Eike
2014-08-30 19:02 ` Eike
2014-08-30 19:46 ` Thorsten Jolitz [this message]
2014-08-31 9:46 ` Nicolas Goaziou
2014-08-31 12:59 ` Eike
2014-09-02 9:42 ` Daimrod
2014-09-02 10:35 ` Nicolas Goaziou
2014-09-02 11:14 ` Daimrod
2014-09-02 18:58 ` Will Monroe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877g1p7ocj.fsf@gmail.com \
--to=tjolitz@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.