org-element: Fix object parsing in captions
commit0e01e3eb13ab4045be51395f98c2d20d5dbaee1d
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 25 Jul 2014 12:47:38 +0000 (25 14:47 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 25 Jul 2014 13:11:10 +0000 (25 15:11 +0200)
tree972ccc24bc6aaa06cba3c5aa2546f6b02214ae84
parent43a8b979f8245bed276cc6142e38141a3055c0b0
org-element: Fix object parsing in captions

* lisp/org-element.el (org-element-parse-secondary-string): Clone all
  local variables from current buffer before parsing a secondary
  string.  Small refactoring.
(org-element-object-variables): Remove variable.

* testing/lisp/test-org-element.el (test-org-element/secondary-string-parsing):
  Add test.

Thanks to Thomas S. Dye for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88850
lisp/org-element.el
testing/lisp/test-org-element.el