unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Kevin Vigouroux <ke.vigouroux@laposte.net>, 50583@debbugs.gnu.org
Subject: bug#50583: 27.2; test-completion should return non-nil
Date: Wed, 15 Sep 2021 10:13:28 +0200	[thread overview]
Message-ID: <877dfiuuhj.fsf@gnus.org> (raw)
In-Reply-To: <da5ee2a1-2599-2f4a-6c63-77bd148bffd1@yandex.ru> (Dmitry Gutov's message of "Wed, 15 Sep 2021 02:37:01 +0300")

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	other threads:[~2021-09-15  8:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-14 13:25 bug#50583: 27.2; test-completion should return non-nil Kevin Vigouroux via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-14 23:37 ` Dmitry Gutov
2021-09-15  8:13   ` Lars Ingebrigtsen [this message]
2021-09-15 10:39     ` Dmitry Gutov
2021-09-15 16:01     ` Kevin Vigouroux via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-16 12:19       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877dfiuuhj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50583@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=ke.vigouroux@laposte.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).