From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jrwats Newsgroups: gmane.emacs.help Subject: Re: Specifying plist requirements in defcustom? Date: Wed, 15 Oct 2008 07:32:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224081667 3399 80.91.229.12 (15 Oct 2008 14:41:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 14:41:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 16:41:57 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kq7ZP-0006h5-5L for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 16:41:51 +0200 Original-Received: from localhost ([127.0.0.1]:53056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq7YJ-0000M6-Pl for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 10:40:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f37g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 70.190.125.119 Original-X-Trace: posting.google.com 1224081162 20438 127.0.0.1 (15 Oct 2008 14:32:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 15 Oct 2008 14:32:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f37g2000pri.googlegroups.com; posting-host=70.190.125.119; posting-account=bFjqRgoAAAA1g2eFs8HouoaeO5EHoWR2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163459 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:58802 Archived-At: > IIUYC, you want a repetition of symbols, each of which must have non-nil > properties `branch', `drive', and `path'. yep > (defcustom corext-enlistments nil > =A0 "..." > =A0 :type > =A0 '(repeat > =A0 =A0 (restricted-sexp > =A0 =A0 =A0:match-alternatives > =A0 =A0 =A0((lambda (x) (and (symbolp x) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(let ((pl (symbol-plist x)= )) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(and (plist-get pl 'br= anch) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (plist-get pl= 'drive) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (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....