emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 cc090294d77: (rng-complete-tag): Add the (ignored) argument to


From: Dmitry Gutov
Subject: emacs-29 cc090294d77: (rng-complete-tag): Add the (ignored) argument to the :company-kind function
Date: Wed, 3 May 2023 16:58:48 -0400 (EDT)

branch: emacs-29
commit cc090294d77c5d4047607d3234c304aaa1b0489c
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]