emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-elements-parse-buffer and weird property drawers
@ 2014-08-30 17:56 Eike
  2014-08-30 19:02 ` Eike
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eike @ 2014-08-30 17:56 UTC (permalink / raw)
  To: org-mode


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

The function call was this:

#+begin_src emacs-lisp
(with-current-buffer "test-exp.org"
  (org-element-parse-buffer))
#+end_src

And here is the "test-exp.org" org file:

#+BEGIN_EXAMPLE
* Sonstiges
** Pizza
   :PROPERTIES:
   :chf:      21.76
   :eur:
   :END:
#+END_EXAMPLE

Am I missing something, or are empty properties not supported?

Kind regards,
Eike

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-02 18:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).