From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Joe Casadonte" Newsgroups: gmane.emacs.help Subject: Re: defcustom - restricted list of symbols Date: Mon, 16 Oct 2006 22:11:49 -0400 Organization: Llama Fresh Farms, Neare Paraguay Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161052834 21022 80.91.229.2 (17 Oct 2006 02:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2006 02:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 04:40:32 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZesW-0001cF-Pi for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Oct 2006 04:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZesW-0005f0-BI for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Oct 2006 22:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 16 Oct 2006 21:11:50 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:fpQu62uhlzH+vs/LIZL6ENmlodw= Original-Lines: 44 Original-NNTP-Posting-Host: 66.92.238.209 Original-X-Trace: sv3-abCoNgo799EiV0dGsmdRDVU/gAfhwiZPjBF3q4JNGnXQX73P3dF3W7WmfwX8bV9uIY4qERqE8vq3q4H!hyQYvh0ra12expdcbDx7XlPx5vdGykFAjM8SW/4bbAO/FyGss9zGtq+x0ZA5/54m/6UewXjH6BQB!l3TPBHvxQJzNWZ/gt+rJEBNkhoUiuA== Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:142466 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38087 Archived-At: On Mon, 16 Oct 2006, Magnus Henoch wrote: > This seems to work: Thanks, Magnus -- that's awesome! By trying to use it, though, I found my "design" is unwieldy, as it will require me to modify many, many variables. Your example, though, led me to this: (defvar joe-available-dictionaries '(choice :tag "Dictionaries" (const :tag "English (US)" english-us) (const :tag "German" german))) (defcustom joe-foo nil "" :type `(repeat (list (string :tag "Foo") ,joe-available-dictionaries (string :tag "Bar"))) :group 'joe) which is much closer to what I want (though not at all what I asked for originally). Now, I only have one variable to manipulate. Thanks! -- Regards, joe Joe Casadonte jcasadonte@northbound-train.com ------------------------------------------------------------------------------ Llama Fresh Farms => http://www.northbound-train.com Gay Media Resource List => http://www.northbound-train.com/gaymedia.html Perl for Win32 => http://www.northbound-train.com/perlwin32.html Emacs Stuff => http://www.northbound-train.com/emacs.html Music CD Trading => http://www.northbound-train.com/cdr.html ------------------------------------------------------------------------------ Live Free, that's the message! ------------------------------------------------------------------------------