From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21644: 24.4; completing-read acts differently on functional collection Date: Thu, 15 Oct 2015 08:01:03 -0700 (PDT) Message-ID: References: <5615A2EA.4@thompsonclan.org> <87vbahmzwd.fsf@gmail.com> <561C5D0B.9070303@yandex.ru> <561C5FB0.6030105@thompsonclan.org> <561C6C12.20803@yandex.ru> <561D54AF.7090701@thompsonclan.org> <561F35AD.8000803@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444921681 7447 80.91.229.3 (15 Oct 2015 15:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 15:08:01 +0000 (UTC) Cc: 21644@debbugs.gnu.org To: Dmitry Gutov , "Ryan C. Thompson" , Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 17:07:46 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zmk85-0004i3-6r for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 17:07:41 +0200 Original-Received: from localhost ([::1]:47905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmk84-000361-KC for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 11:07:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmk2r-00026S-BG for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:02:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmk2d-0008Co-3a for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmk2c-0008Ck-W0 for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zmk2c-0001k4-HJ for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Oct 2015 15:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21644 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21644-submit@debbugs.gnu.org id=B21644.14449212766641 (code B ref 21644); Thu, 15 Oct 2015 15:02:02 +0000 Original-Received: (at 21644) by debbugs.gnu.org; 15 Oct 2015 15:01:16 +0000 Original-Received: from localhost ([127.0.0.1]:52478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmk1r-0001j2-FG for submit@debbugs.gnu.org; Thu, 15 Oct 2015 11:01:16 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:38683) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmk1p-0001ir-4X for 21644@debbugs.gnu.org; Thu, 15 Oct 2015 11:01:13 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9FF1AxM000697 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Oct 2015 15:01:11 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9FF19lj015157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 15 Oct 2015 15:01:09 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t9FF15ET027620; Thu, 15 Oct 2015 15:01:05 GMT In-Reply-To: <561F35AD.8000803@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107643 Archived-At: > >> (info "(elisp) Programmed Completion") or > >> (info "(elisp) Basic Completion"), probably. > > Maybe the `completing-read' docstring should link to these info nodes. >=20 > This seems like it should suffice. Do you agree? > +See Info node `(elisp)Basic Completion' for more details > on completion, COLLECTION, and PREDICATE. Yes and no, IMO. `Basic Completion' certainly provides some information about "completion, COLLECTION, and PREDICATE." But for 3 other functions, not explicitly for `completing-read' - it is not even mentioned there. To understand COLLECTION for `completing-read', that node not the best place to go. As was suggested earlier (see above), node `Programmed Completion' is where we should send someone for information about a function-valued COLLECTION argument. It doesn't hurt to send them to both nodes or to only their parent, `Completion'. But it is not clear to me that someone trying to use `completing-read' with a function-valued COLLECTION will understand what is needed just from `Basic Completion'. Especially since the `completing-read' doc string mentions only `all-completions' and `try-completion', not `test-completion' (which is OK): Someone going to `Basic Completion' to find out more about parameter COLLECTION for `completing-read' is likely to miss the description of COLLECTION for `test-completion' or to think that it is not relevant. A priori, there is nothing that necessarily connects the COLLECTION parameter of `completing-read' with the COLLECTION parameters of those 3 more-basic functions, or even that connects those 3 COLLECTION parameters. That is, just giving them the same name is not sufficient to specify that they are the same. Just saying to go see `Basic Completion' for info about COLLECTION etc. _suggests_ that there is a connection, but, again, that doesn't mean that someone will see the relevance of `test-completion' here.