org-element: Avoid `org-element-parse-secondary-string'
commit98ee739e6d0a1a91bec984fc45f38d5f501c120c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 27 Jan 2015 21:25:15 +0000 (27 22:25 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 27 Jan 2015 21:25:15 +0000 (27 22:25 +0100)
tree44ec3f0243b8f7c2baef71600fcea30722ef435f
parent6617e6dfa90c6fe09ee0c0ff398e90e853c389ee
org-element: Avoid `org-element-parse-secondary-string'

* lisp/org-element.el (org-element-headline-parser,
  org-element-inlinetask-parser, org-element-item-parser,
  org-element--collect-affiliated-keywords): Use
  `org-element--parse-objects' instead of
  `org-element-parse-secondary-string' when parsing live objects in
  secondary strings.

`org-element-parse-secondary-string' parses a given string in
a temporary buffer, rendering buffer position related
properties (e.g., :begin) invalid.

Reported-by: John Kitchin <johnrkitchin@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94397>
lisp/org-element.el