org-element: Forbid footnote references in parsed keywords
commit7ebe87e2d5fb6c20819826e0abc4f5245a8969a2
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 15 Feb 2015 20:37:26 +0000 (15 21:37 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 15 Feb 2015 20:56:57 +0000 (15 21:56 +0100)
tree21ccc59bd5da22badddc033caeab92540c105d5e
parent176681bc65b5c787dc0737ccd523afd19b7ea4c0
org-element: Forbid footnote references in parsed keywords

* lisp/org-element.el (org-element-object-restrictions): Forbid
  footnote references in parsed keywords.

Inserting footnote references in parsed keywords (e.g., TITLE or
CAPTION) can lead to subtle bugs.  Indeed, it is impossible to know in
time if that particular footnote is going to be used in the output,
and, therefore, if it should count, e.g., in
`org-export-get-footnote-number'.
lisp/org-element.el