unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: custom on special option
Date: Fri, 20 Feb 2004 14:00:07 +0100	[thread overview]
Message-ID: <rjptc9j488.fsf@sheridan.dina.kvl.dk> (raw)
In-Reply-To: 871xpfswfz.fsf@emptyhost.emptydomain.de

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.

      reply	other threads:[~2004-02-20 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 22:01 custom on special option Miguel Frasson
2004-01-31 20:19 ` Kai Grossjohann
2004-02-20 13:00   ` Per Abrahamsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rjptc9j488.fsf@sheridan.dina.kvl.dk \
    --to=abraham@dina.kvl.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).