GNU bug report logs - #10416
24.0.92; #'test-completion is inconsistent with symbol hash keys in COLLECTION

Previous Next

Package: emacs;

Reported by: Aidan Kehoe <kehoea <at> parhasard.net>

Date: Sun, 1 Jan 2012 14:20:01 UTC

Severity: normal

Tags: patch

Found in version 24.0.92

Fixed in version 24.4

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 10416 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Aidan Kehoe <kehoea <at> parhasard.net>
Cc: 10416 <at> debbugs.gnu.org
Subject: Re: bug#10416: 24.0.92;
	#'test-completion is inconsistent with symbol hash keys in COLLECTION
Date: Tue, 03 Jan 2012 17:07:20 -0500
>> 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:

> ‘If COLLECTION is a hash-table, all the keys that are strings or symbols
> are the possible completions.’

Right.  So we clearly need to fix the doc.  Maybe also the code.  But in
the mean time I think the contradictory docs basically mean "stay away
from symbols as keys for completion hash-tables".


        Stefan




This bug report was last modified 9 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.