From cc090294d77c5d4047607d3234c304aaa1b0489c Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 3 May 2023 23:58:27 +0300 Subject: [PATCH] (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. --- lisp/nxml/rng-nxml.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/nxml/rng-nxml.el b/lisp/nxml/rng-nxml.el index 568cf24451b..fd1f4fb904e 100644 --- a/lisp/nxml/rng-nxml.el +++ b/lisp/nxml/rng-nxml.el @@ -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 -- 2.39.5