Subject: Re: bug#6378: all-completions Segfault

From: Thierry Volpiatto <[email-masked]>
Date: Wed, 09 Jun 2010 12:05:15 +0200

Lennart Borgman <[email-masked]> writes:

> On Wed, Jun 9, 2010 at 9:23 AM, Thierry Volpiatto
> <[email-masked]> wrote:
>> Lennart Borgman <[email-masked]> writes:
>>
>>> On Wed, Jun 9, 2010 at 7:13 AM, Thierry Volpiatto
>>> <[email-masked]> wrote:
>>>> (completing-read "test: " [1 2 3 23 24 34 26 40 28])
>>>
>>> Does not that crash just because only symbols or strings can be keys
>>> in the collection?
>> I thought but it's worst, because:
>>
>> (completing-read "test: " ["1" "2" "23" "24" "25" "34" "45" "56"])
>>
>> Also crash emacs.
>
> Yes, it expects an obarray, not a plain vector.

Anyway if completing-read is not able to handle a vector 
it should return an error and not crashing emacs.

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/