(rng-complete-tag): Add the (ignored) argument to the :company-kind function

* lisp/nxml/rng-nxml.el (rng-complete-tag): Add the (ignored)
argument to the :company-kind function.  Fixes the "Wrong number
of arguments" error reported at
https://github.com/company-mode/company-mode/issues/1386.
This commit is contained in:
Dmitry Gutov 2023-05-03 23:58:27 +03:00
parent 21ec6c1d5c
commit cc090294d7

View file

@ -180,7 +180,7 @@ Validation will be enabled if `rng-nxml-auto-validate-flag' is non-nil."
(insert " "))))
((member completion extra-strings)
(insert ">"))))
:company-kind ,(lambda () 'property))))))
:company-kind ,(lambda (_) 'property))))))
(defconst rng-in-end-tag-name-regex
(replace-regexp-in-string