all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miguel Frasson <frasson@brutus.math.leidenuniv.nl>
Subject: custom on special option
Date: 26 Jan 2004 23:01:40 +0100	[thread overview]
Message-ID: <gyisiyjrnf.fsf@brutus.math.leidenuniv.nl> (raw)


Hello.

I want to defcustom an option that is a list that may contain only some
specific symbols (say red, yellow, green), one symbol can appear only
once, or any sexp that does not match any specific symbols. For example,
nil and (red (blablabla) yellow) are valid values, but (green green)
shouldn't be, but I will not care. 

Actually the values different from the specific symbols are meant
to appear rarely and I don't want to spend too much energy with them, for
example I will not care if user actually inserts in the sexp another of
the specific symbols.

I would like in the customization of the option, the user could see INS
and DEL buttons to add/remove elements, and in each element, the "Value
menu" should show only those specific elements that are not already in the
previous/following itens (because the variable allows only 1 or 0 of each
symbol), and "Other" to insert the sexp. Not that I don't mean the symbols
that appear in the SET variable, but that symbols selected meanwhile it is
set.

Example:

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. 
 
Is there a way to custom such option?

[]'s

Miguel.

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

             reply	other threads:[~2004-01-26 22:01 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to=gyisiyjrnf.fsf@brutus.math.leidenuniv.nl \
    --to=frasson@brutus.math.leidenuniv.nl \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.