all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Joe Casadonte" <jcasadonte@northbound-train.com>
Subject: Re: defcustom - restricted list of symbols
Date: Mon, 16 Oct 2006 22:11:49 -0400	[thread overview]
Message-ID: <uy7rf668q.fsf@terrapin.northbound-train.com> (raw)
In-Reply-To: mailman.8194.1160956463.9609.help-gnu-emacs@gnu.org

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!
------------------------------------------------------------------------------

      parent reply	other threads:[~2006-10-17  2:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 18:48 defcustom - restricted list of symbols Joe Casadonte
2006-10-15 23:53 ` Magnus Henoch
     [not found] ` <mailman.8194.1160956463.9609.help-gnu-emacs@gnu.org>
2006-10-17  2:11   ` Joe Casadonte [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

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

  git send-email \
    --in-reply-to=uy7rf668q.fsf@terrapin.northbound-train.com \
    --to=jcasadonte@northbound-train.com \
    /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.