bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50583: 27.2; test-completion should return non-nil


From: Lars Ingebrigtsen
Subject: bug#50583: 27.2; test-completion should return non-nil
Date: Wed, 15 Sep 2021 10:13:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 14.09.2021 16:25, Kevin Vigouroux via Bug reports for GNU Emacs,
> the Swiss army knife of text editors wrote:
>> In the following code, I assume that `test-completion' should return a
>> non-‘nil’ value because "foo" is a valid completion alternative.
>
> "foo" is not a member of the list '("foobar" "bar" "barfoo"), so
> that's not true.

The doc string here is vague, though:

Return non-nil if STRING is a valid completion.

So perhaps it could be clarified.  I think it wants to say something
like "if STRING is in COMPLETIONS", but since COMPLETIONS can be a
function, that's not quite right.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]