From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miguel Frasson Newsgroups: gmane.emacs.help Subject: custom on special option Date: 26 Jan 2004 23:01:40 +0100 Organization: Institute of Mathematics, Leiden, The Netherlands Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075155541 11505 80.91.224.253 (26 Jan 2004 22:19:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2004 22:19:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 23:18:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlF4D-0000t0-00 for ; Mon, 26 Jan 2004 23:18:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlF2n-0002Te-4x for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2004 17:17:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!solnet.ch!solnet.ch!surfnet.nl!leidenuniv.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 84e5e554.math.leidenuniv.nl Original-X-Trace: mercury.leidenuniv.nl 1075154500 21065 132.229.229.84 (26 Jan 2004 22:01:40 GMT) Original-X-Complaints-To: usenet@mercury.leidenuniv.nl Original-NNTP-Posting-Date: Mon, 26 Jan 2004 22:01:40 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:120443 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16390 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16390 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