[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67210: 30.0.50; completing-read with REQUIRE-MATCH=t can sometimes r
From: |
Stefan Monnier |
Subject: |
bug#67210: 30.0.50; completing-read with REQUIRE-MATCH=t can sometimes return a non-match |
Date: |
Thu, 16 Nov 2023 13:24:42 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>>> Or perhaps completion-emacs22-try-completion is violating the spec of
>>>> completion-try-completion, and should be returning nil in this case?
>>
>> The "emacs22" style disregards the text after point to compute the
>> completions, so "foo" would be a valid return value as well, but indeed
>> t seems wrong because that should apply to the complete input.
>
> I think "foo" (or more specifically '("foo" . 3)) might be a bit
> unexpected, because then if you pressed TAB with the input foo|bar, the
> bar would be deleted. And emacs22 completion usually doesn't delete the
> text after point, it just ignores it.
>
> So '("foobar" . 3) seems better. Open to counterarguments of course.
Oh, right you are.
Stefan