Fix parser wrt to defcustom syntax related changes
commit34bbb39454f7a3f7a58432250bd4b127d06437dc
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 9 Nov 2014 22:55:27 +0000 (9 23:55 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 9 Nov 2014 23:08:44 +0000 (10 00:08 +0100)
treebf9ca3e9560734f3793b19fc60d734a781f9ff3b
parenta95cfebbc3d1c00451148ef63c8b0cdea90658df
Fix parser wrt to defcustom syntax related changes

* lisp/org-element.el (org-element-paragraph-separate,
  org-element--object-regexp): Turn defconst into defvar.
(org-element--set-regexps): Properly set previous variables.
(org-element-update-syntax): New function.

* lisp/org-list.el (org-plain-list-ordered-item-terminator,
  org-list-allow-alphabetical): Call new function whenever these
  variables are modified and Org is already loaded.

* lisp/org.el (org-add-link-type): Call new function since a new link
  type triggers a rebuild of syntax regexps, possibly invalidating
  cache in all Org buffers.

Reported-by: Christopher Dannheim <ch.dannheim@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/92487>
lisp/org-element.el
lisp/org-list.el
lisp/org.el