org-footnote: Be more strict about location for new footnotes
commit176681bc65b5c787dc0737ccd523afd19b7ea4c0
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 15 Feb 2015 20:30:29 +0000 (15 21:30 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 15 Feb 2015 20:56:57 +0000 (15 21:56 +0100)
tree0cf71eaecff62a83233a45f8c93ad98f0c20692d
parent13938b87c2f9b6b5d20787853368aeeed4c371b9
org-footnote: Be more strict about location for new footnotes

* lisp/org-footnote.el (org-footnote--allow-reference-p): New
  function.
(org-footnote-new): Use new function.

* testing/lisp/test-org-footnote.el (test-org-footnote/new): New test.

In particular, Org now refuses to add a footnote reference in
a keyword, e.g., TITLE.
lisp/org-footnote.el
testing/lisp/test-org-footnote.el