From: Aidan Kehoe <kehoea@parhasard.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 10416@debbugs.gnu.org
Subject: bug#10416: 24.0.92; #'test-completion is inconsistent with symbol hash keys in COLLECTION
Date: Mon, 2 Jan 2012 00:21:23 +0000 [thread overview]
Message-ID: <20224.63619.923297.817329@parhasard.net> (raw)
In-Reply-To: <jwvaa67vxq7.fsf-monnier+emacs@gnu.org>
Ar an chéad lá de mí Eanair, scríobh Stefan Monnier:
> > (try-completion "del-alist" #s(hash-table size 145 test equal rehash-size 1.5 rehash-threshold 0.8 data (del-alist hello "delay-mode-hooks" everyone "delete" everyone)))
> > => t ;; as expected and documented
>
> > (all-completions "del-alist" #s(hash-table size 145 test equal rehash-size 1.5 rehash-threshold 0.8 data (del-alist hello "delay-mode-hooks" everyone "delete" everyone)))
> > => ("del-alist") ;; as expected and documented
>
> These are bugs. The Elisp manual is pretty clear about it:
>
> If COLLECTION is a hash table, then the keys that are strings are
> the possible completions. Other keys are ignored.
Also, throwing an error on encountering a symbol key (as #'test-completion
does) is not what that paragraph describes.
--
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
next prev parent reply other threads:[~2012-01-02 0:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-01 14:16 bug#10416: 24.0.92; #'test-completion is inconsistent with symbol hash keys in COLLECTION Aidan Kehoe
2012-01-01 22:59 ` Stefan Monnier
2012-01-02 0:11 ` Aidan Kehoe
2012-01-03 22:07 ` Stefan Monnier
2012-01-02 0:21 ` Aidan Kehoe [this message]
2016-06-08 3:42 ` Noam Postavsky
2016-06-18 16:32 ` Noam Postavsky
2016-06-18 17:20 ` Eli Zaretskii
2016-06-18 19:09 ` Noam Postavsky
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=20224.63619.923297.817329@parhasard.net \
--to=kehoea@parhasard.net \
--cc=10416@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).