]> git.eshelyaron.com Git - emacs.git/commit
Keep nxml prolog updated via syntax-propertize
authorNoam Postavsky <npostavs@gmail.com>
Wed, 5 Jun 2019 23:24:58 +0000 (19:24 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 6 Jun 2019 00:30:23 +0000 (20:30 -0400)
commitda118e6a7c5d1d1d07fd186b0ae5e60340ac9dca
tree932423461bb4df20c46b50ffbf0c96c74ddf49d8
parent610fb73ab6d7a22b722f523d6ebc4aa8fa1db7c9
Keep nxml prolog updated via syntax-propertize

Instead of using after-change-functions.  Also, stop consulting
nxml-prolog-regions during syntax-propertize.  It turns out the
problems fixed by using prolog information are actually due to using
the wrong syntax table during propertizing.  This was fixed in
2019-06-04 "* lisp/emacs-lisp/syntax.el: Use syntax-ppss-table for
syntax-propertize." so consulting the prolog data is no longer needed.
* lisp/nxml/nxml-rap.el (nxml-maybe-rescan-prolog): Remove.
* lisp/nxml/nxml-mode.el (nxml-mode): Stop using it.
(nxml-syntax-propertize): Don't use nxml-prolog-regions, just call
nxml-scan-prolog if needed before delegating to
sgml-syntax-propertize.
* test/lisp/nxml/nxml-mode-tests.el (nxml-mode-edit-prolog): New test.
lisp/nxml/nxml-mode.el
lisp/nxml/nxml-rap.el
test/lisp/nxml/nxml-mode-tests.el