* lisp/nxml/nxml-mode.el: Use lexical-binding and syntax-propertize.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Oct 2013 13:54:48 +0000 (09:54 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Oct 2013 13:54:48 +0000 (09:54 -0400)
commitda3e5ebb8d6b69f82191ac6e6dc63926f210db68
tree2b4d370db8fdab4446469051f7f284c6ab44b7c1
parent2f84ba10862ccbd5fb70044b160c43e4c00b5822
* lisp/nxml/nxml-mode.el: Use lexical-binding and syntax-propertize.
(font-lock-beg, font-lock-end): Move before first use.
(nxml-mode): Use syntax-propertize-function.
(nxml-after-change, nxml-after-change1): Adjust accordingly.
(nxml-extend-after-change-region): Remove.
* lisp/nxml/nxml-ns.el: Use lexical-binding.
(nxml-ns-save): Use `declare'.
(nxml-ns-prefixes-for): Avoid add-to-list.
* lisp/nxml/nxml-util.el: Use lexical-binding.
(nxml-with-degradation-on-error, nxml-with-invisible-motion):
Use `declare'.
* lisp/nxml/rng-match.el: Use lexical-binding.
(rng--ipattern): Use cl-defstruct.
(rng-compute-start-tag-open-deriv, rng-compute-start-attribute-deriv)
(rng-cons-group-after, rng-subst-group-after)
(rng-subst-interleave-after, rng-apply-after, rng-compute-data-deriv):
Use closures instead of `(lambda...).
* lisp/nxml/xmltok.el: Use lexical-binding.
(xmltok-save): Use `declare'.
(xmltok-unclosed-reparse-p, xmltok-semi-closed-reparse-p): Remove.
lisp/ChangeLog
lisp/nxml/nxml-mode.el
lisp/nxml/nxml-ns.el
lisp/nxml/nxml-util.el
lisp/nxml/rng-match.el
lisp/nxml/xmltok.el