Radio targets cannot beging or end with whitespace
commit23e62f7527e7106abd12f35fc919f44dfe22f097
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 2 Apr 2014 12:16:52 +0000 (2 14:16 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 2 Apr 2014 12:54:37 +0000 (2 14:54 +0200)
tree640f8623f74afb80fa9f424f4d49f50b59eb73b8
parent8a43270e8ee85e43de607f9fc152dc2f459e9cbb
Radio targets cannot beging or end with whitespace

* lisp/org.el (org-radio-target-regexp): Radio targets cannot begin or
  end with whitespace.
(org-target-regexp): Update syntax according to previous rule.
(org-any-target-regexp): Fix fontification bug.

* testing/lisp/test-org-element.el (test-org-element/radio-target-parser):
  Add test.

Variables are turned into defconst to emphasize the fact that they are
not subject to change.

Thanks to Daniel Clemente for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/84461
lisp/org.el
testing/lisp/test-org-element.el