]> git.eshelyaron.com Git - emacs.git/commit
Fix eglot-completion-at-point for multiple matches
authorFelicián Németh <felician.nemeth@gmail.com>
Sat, 11 Jan 2020 19:12:26 +0000 (20:12 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 16 Jan 2021 13:33:10 +0000 (13:33 +0000)
commit581dfb79bffc25a2ef8879aee4862817f6c21e79
tree234689fad3646ea8e19796b801b42698ee2665ba
parent6d731fab9c07cd49f83e49ad3e6588ddb47fe98e
Fix eglot-completion-at-point for multiple matches

The test-completion case shouldn't return t when there are multiple
matches.  Similarly, the try-completion should return t only if the
match is exact.  See (info "(elisp)Programmed Completion").

* eglot.el (eglot-completion-at-point): Instead of testing
memberships, use test-completion and try-completion suggested
by (info "(elisp)Programmed Completion").

* eglot-tests.el (non-unique-completions): Add new test.

Co-authored-by: João Távora <joaotavora@gmail.com>
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/365
lisp/progmodes/eglot.el