From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.bugs Subject: bug#10416: 24.0.92; #'test-completion is inconsistent with symbol hash keys in COLLECTION Date: Mon, 2 Jan 2012 00:11:41 +0000 Message-ID: <20224.63037.191716.31567@parhasard.net> References: <20224.27302.821804.284656@parhasard.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325463122 21371 80.91.229.12 (2 Jan 2012 00:12:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2012 00:12:02 +0000 (UTC) Cc: 10416@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 02 01:11:57 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RhVVN-0003gI-IT for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jan 2012 01:11:57 +0100 Original-Received: from localhost ([::1]:41610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhVVN-0005Y4-2A for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jan 2012 19:11:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhVVK-0005Xj-DC for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2012 19:11:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhVVJ-0004mF-81 for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2012 19:11:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhVVJ-0004mB-6Z for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2012 19:11:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RhVYM-0000sF-Gt for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2012 19:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aidan Kehoe Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jan 2012 00:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10416 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10416-submit@debbugs.gnu.org id=B10416.13254632973333 (code B ref 10416); Mon, 02 Jan 2012 00:15:02 +0000 Original-Received: (at 10416) by debbugs.gnu.org; 2 Jan 2012 00:14:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RhVYH-0000ri-GR for submit@debbugs.gnu.org; Sun, 01 Jan 2012 19:14:57 -0500 Original-Received: from zeus.asclepian.ie ([78.47.46.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RhVYE-0000rW-7T for 10416@debbugs.gnu.org; Sun, 01 Jan 2012 19:14:55 -0500 Original-Received: by zeus.asclepian.ie (Postfix, from userid 1002) id 3B59F82D4AC; Mon, 2 Jan 2012 00:11:41 +0000 (GMT) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" 7c383c5784ed+ XEmacs Lucid (x86_64-unknown-freebsd8.2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 01 Jan 2012 19:15:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:55353 Archived-At: Ar an ch=C3=A9ad l=C3=A1 de m=C3=AD Eanair, scr=C3=ADobh Stefan Monnier:= =20 > > (try-completion "del-alist" #s(hash-table size 145 test equal rehas= h-size 1.5 rehash-threshold 0.8 data (del-alist hello "delay-mode-hooks" = everyone "delete" everyone))) > > =3D> t ;; as expected and documented >=20 > > (all-completions "del-alist" #s(hash-table size 145 test equal reha= sh-size 1.5 rehash-threshold 0.8 data (del-alist hello "delay-mode-hooks"= everyone "delete" everyone))) > > =3D> ("del-alist") ;; as expected and documented >=20 > These are bugs. The Elisp manual is pretty clear about it: >=20 > If COLLECTION is a hash table, then the keys that are strings are > the possible completions. Other keys are ignored. And the docstrings of #'try-completion and #'all-completion are equally clear, and contradict that. They both say the following: =E2=80=98If COLLECTION is a hash-table, all the keys that are strings or = symbols are the possible completions.=E2=80=99 --=20 =E2=80=98Iodine deficiency was endemic in parts of the UK until, through = what has been described as =E2=80=9Can unplanned and accidental public health triumph=E2= =80=9D, iodine was added to cattle feed to improve milk production in the 1930s.=E2=80=99 (EN Pearce, Lancet, June 2011)