]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark eglot-completion-at-point capf "non-exclusive"
authorGarret Buell <gmbuell@gmail.com>
Wed, 15 Dec 2021 21:17:26 +0000 (13:17 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 21:17:26 +0000 (21:17 +0000)
Add :exclusive 'no to eglot-completion-at-point results marking it as
non-exclusive. This will allow completion to fall back to other less precise
completion backends (e.g. dabbrev) if Eglot's returns no results.

* eglot.el (eglot-completion-at-point): Set :exclusive to 'no

Copyright-paperwork-exempt: Yes
GitHub-reference: close https://github.com/joaotavora/eglot/issues/770

lisp/progmodes/eglot.el

index d8890209129a30e99acb7b7d8037421a0d9be14e..5fbf9a7361675d4ba7c3cf64f10deb9a1e5ba6cb 100644 (file)
@@ -2415,6 +2415,7 @@ is not active."
             (regexp-opt
              (cl-coerce (cl-getf completion-capability :triggerCharacters) 'list))
             (line-beginning-position))))
+       :exclusive 'no
        :exit-function
        (lambda (proxy status)
          (when (eq status 'finished)