emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does all-completions with COLLECTION == obarray return?


From: Stefan Monnier
Subject: Re: What does all-completions with COLLECTION == obarray return?
Date: Wed, 08 Apr 2015 09:46:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> The recipe seems to do something nasty to the obarray.  But I don't
>> recall seeing this recipe.  Could you resend it?

> It was just this:

> --8<---------------cut here---------------start------------->8---
> (let* ((hi-lock-face-defaults
>         (list
>          "hi-yellow"
>          "hi-pink"
>          "hi-green"
>          "hi-blue"
>          "hi-black-b"
>          "hi-blue-b"
>          "hi-red-b"
>          "hi-green-b"
>          "hi-black-hb")))
>   (completing-read
>    (format "Highlight using face (default %s): "
>            (car hi-lock-face-defaults))
>    (all-completions "" obarray)
>    'facep t nil 'face-name-history hi-lock-face-defaults))
> --8<---------------cut here---------------end--------------->8---

This code looks OK (though I'd pass obarray directly without going
through all-completions).

> with helm-mode on.
> AFAICT we don't try to manipulate obarray directly (of course).  What
> nasty things could we be doing?

I don't know.  I expected the recipe to demonstrate the kinds of
problems you're seeing, so I guess I lack other parts of the recipe.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]