]> git.eshelyaron.com Git - emacs.git/commit
[Eglot] Stricter "expand common" behavior
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 25 Aug 2024 15:23:51 +0000 (18:23 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:33 +0000 (09:51 +0200)
commite69902e605ac29aed8ebfae98be24d7d80bb59bf
tree674fe137755790d098dff4e0a4421c7f1c85b992
parent975d0f44753ca42055c1bd0ab2a59bda47cd1ede
[Eglot] Stricter "expand common" behavior

* lisp/progmodes/eglot.el (eglot--dumb-tryc): Check that the
expanded string matches every completion strictly (bug#72705).
And in the fallback case, check whether the table matches the
original prefix at all.  Return nil otherwise.

* test/lisp/progmodes/eglot-tests.el
(eglot-test-stop-completion-on-nonprefix)
(eglot-test-try-completion-nomatch): Corresponding tests.

* etc/EGLOT-NEWS: New entry.

(cherry picked from commit 713069dd7a87cff8388c25f1bc2c2c1b5217b1ca)
etc/EGLOT-NEWS
lisp/progmodes/eglot.el
test/lisp/progmodes/eglot-tests.el