From 9b63f21e75dc8222b5dfc4006ce8559bb73532cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 5 Sep 2021 09:44:27 +0100 Subject: [PATCH] Respect completion-regexp-alist in Eglot's completion table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See GitHub discussion #726 Suggested-by: Felicián Németh Suggested-by: JD Smith * eglot (eglot-completion-at-point): use all-completions. --- eglot.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eglot.el b/eglot.el index 5fdc2532..e8b7ffbb 100644 --- a/eglot.el +++ b/eglot.el @@ -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)))