]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect completion-regexp-alist in eglot's completion table
authorJoão Távora <joaotavora@gmail.com>
Sun, 5 Sep 2021 08:44:27 +0000 (09:44 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 5 Sep 2021 08:44:27 +0000 (09:44 +0100)
See GitHub discussion https://github.com/joaotavora/eglot/issues/726

Suggested-by: Felicián Németh <felician.nemeth@gmail.com>
Suggested-by: JD Smith
* eglot (eglot-completion-at-point): use all-completions.

lisp/progmodes/eglot.el

index 5fdc25327f4e0fb0fce21feb8ae91d7ea5554ff2..e8b7ffbbb1339977de0edf085f604d6dadb32119 100644 (file)
@@ -2363,7 +2363,9 @@ is not active."
           ((null action)                                 ; try-completion
            (try-completion probe (funcall proxies)))
           ((eq action t)                                 ; all-completions
-           (cl-remove-if-not
+           (all-completions
+            ""
+            (funcall proxies)
             (lambda (proxy)
               (let* ((item (get-text-property 0 'eglot--lsp-item proxy))
                      (filterText (plist-get item :filterText)))