[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom on special option
From: |
Per Abrahamsen |
Subject: |
Re: custom on special option |
Date: |
Fri, 20 Feb 2004 14:00:07 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Kai Grossjohann <kai@emptydomain.de> writes:
> Miguel Frasson <frasson@brutus.math.leidenuniv.nl> writes:
>
>> The variable is nil (for example). Then I INS, and in the "Value menu" I
>> see "red, yellow, green, other". I select "green". Then I INS another
>> element, and I see in the value menu "red, yellow, other". Etc.
>
> It's easier to make a set, so that you see
>
> [ ] red
> [ ] green
> [ ] yellow
>
> with some checkboxes. Not sure, though, how the custom value thing
> comes in.
(defcustom foo '(red 2 blue)
"The elements of foo that should be recognized."
:type '(list (set :inline t
:greedy t
(const red) (const blue) (const yellow))
(repeat :inline t sexp)))
Note that this only works if the order of the elements in the list is
of no importance.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: custom on special option,
Per Abrahamsen <=