]> git.eshelyaron.com Git - emacs.git/commit
Return t from completion-emacs22-try-completion only for completions
authorSpencer Baugh <sbaugh@janestreet.com>
Thu, 16 Nov 2023 16:34:08 +0000 (11:34 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 Nov 2023 17:34:23 +0000 (12:34 -0500)
commitd8c1ac6c35f84000aedff67d60cd420360183019
tree9d11c35c2295548792cea2ae0e00e7e2a1473e22
parentb1b9082b3eab0e83deeee622e61ad3d577646950
Return t from completion-emacs22-try-completion only for completions

The emacs22 completion style ignores the text after point when
computing completions.  However, it still needs to take into account
the entire string it's given, to avoid returning incorrect values.

Previously, completion-emacs22-try-completion would return t if the
text before point was an exact completion.  But this is effectively
saying that the entire input string was an exact completion, which may
not be correct.  This would cause completing-read with REQUIRE-MATCH=t
to return a non-completion.

Now, completion-emacs22-try-completion only returns t if the entire
input string is an exact completion.

* lisp/minibuffer.el (completion-emacs22-try-completion): Return t
only if the entire input string is an exact completion.  (Bug#67210)
lisp/minibuffer.el