* lisp/nxml: Use standard completion; it also works for company-mode
commitd7896a6f773dc4ae4e1b56c34b6708fe2bc5610a
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 16 Jan 2016 19:03:29 +0000 (16 14:03 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 16 Jan 2016 19:03:29 +0000 (16 14:03 -0500)
treee79a7eb44c198c5d4b79c08c552512144dc581c3
parentd10982a91ac2b93bf9a375e00d676a25f90b885a
* lisp/nxml: Use standard completion; it also works for company-mode

* lisp/nxml/nxml-mode.el (nxml-complete): Obsolete.
(nxml-completion-at-point-function): Remove.
(nxml-mode): Don't set completion-at-point-functions.
* lisp/nxml/rng-nxml.el (rng-nxml-mode-init): Set it here instead.
(rng-completion-at-point): Rename from rng-complete and mark it
non-interactive.  It is now to be used as completion-at-point-function.
(rng-complete-tag, rng-complete-end-tag, rng-complete-attribute-name)
(rng-complete-attribute-value): Don't perform completion, but return
completion data instead.
(rng-complete-qname-function, rng-generate-qname-list): Add a few
arguments, previously passed via dynamic coping.
(rng-strings-to-completion-table): Rename from
rng-strings-to-completion-alist.  Don't return an alist.  Don't both
sorting and uniquifying.

* lisp/nxml/rng-util.el (rng-complete-before-point): Delete function.
(rng-completion-exact-p, rng-quote-string): Delete functions.

* lisp/nxml/rng-valid.el (rng-recover-start-tag-open)
(rng-missing-attributes-message, rng-missing-element-message)
(rng-mark-missing-end-tags): Use explicit ".." in formats rather than
calling rng-quote-string everywhere.
lisp/nxml/nxml-mode.el
lisp/nxml/rng-nxml.el
lisp/nxml/rng-util.el
lisp/nxml/rng-valid.el