]> git.eshelyaron.com Git - emacs.git/commitdiff
(rng-complete-tag): Add the (ignored) argument to the :company-kind function
authorDmitry Gutov <dmitry@gutov.dev>
Wed, 3 May 2023 20:58:27 +0000 (23:58 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Wed, 3 May 2023 20:58:27 +0000 (23:58 +0300)
* 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

index 568cf24451b3c9e16d03e53d09635c84414f5654..fd1f4fb904e6dc60b44581f020786c134603c154 100644 (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