help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying plist requirements in defcustom?


From: jrwats
Subject: Re: Specifying plist requirements in defcustom?
Date: Wed, 15 Oct 2008 07:32:41 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]