all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jrwats <jrwats@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Specifying plist requirements in defcustom?
Date: Wed, 15 Oct 2008 07:32:41 -0700 (PDT)	[thread overview]
Message-ID: <a1a45a23-e7c1-4261-9d3a-9a8d85806c03@f37g2000pri.googlegroups.com> (raw)
In-Reply-To: mailman.901.1223861517.25473.help-gnu-emacs@gnu.org

> IIUYC, you want a repetition of symbols, each of which must have non-nil
> properties `branch', `drive', and `path'.
yep

> (defcustom corext-enlistments nil
>   "..."
>   :type
>   '(repeat
>     (restricted-sexp
>      :match-alternatives
>      ((lambda (x) (and (symbolp x)
>                        (let ((pl (symbol-plist x)))
>                          (and (plist-get pl 'branch)
>                               (plist-get pl 'drive)
>                               (plist-get pl 'path)))))))))
>
From what I could tell, this worked, but I was also to have a user-
friendly customization interface when a user, say, clicked customoize
corext-enlistments.  I'd like a prompt for the symbol-name, and the
individual property list values: branch, drive, and path.  It seems
that to acheive something like this, I'd need to just make them
alists....


  parent reply	other threads:[~2008-10-15 14:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-12 20:46 Specifying plist requirements in defcustom? jrwats
2008-10-12 23:18 ` Lennart Borgman (gmail)
2008-10-13  1:31 ` Drew Adams
     [not found] ` <mailman.901.1223861517.25473.help-gnu-emacs@gnu.org>
2008-10-15 14:32   ` jrwats [this message]
2008-10-15 14:50     ` Drew Adams
2008-10-15 14:54       ` Lennart Borgman (gmail)
2008-10-15 15:41         ` Drew Adams
     [not found]         ` <mailman.1123.1224085332.25473.help-gnu-emacs@gnu.org>
2008-10-15 16:27           ` jrwats
2008-10-15 16:33             ` jrwats
2008-10-15 16:48               ` jrwats
2008-10-15 16:58             ` Drew Adams
     [not found]             ` <mailman.1126.1224089933.25473.help-gnu-emacs@gnu.org>
2008-10-15 17:43               ` jrwats

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=a1a45a23-e7c1-4261-9d3a-9a8d85806c03@f37g2000pri.googlegroups.com \
    --to=jrwats@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.