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: Michael Heerdegen
Subject: Re: What does all-completions with COLLECTION == obarray return?
Date: Wed, 08 Apr 2015 11:42:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> 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---

with helm-mode on.

AFAICT we don't try to manipulate obarray directly (of course).  What
nasty things could we be doing?


Thanks,

Michael.



reply via email to

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