all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'jrwats'" <jrwats@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Specifying plist requirements in defcustom?
Date: Wed, 15 Oct 2008 07:50:24 -0700	[thread overview]
Message-ID: <006f01c92ed5$5b49e150$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <a1a45a23-e7c1-4261-9d3a-9a8d85806c03@f37g2000pri.googlegroups.com>

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

You'll have to extend Customize to get that, AFAIK. Or write your own command to
customize this particular option. Customize doesn't really guide you with
prompts and such. Customize could use a little more guidance, especially for
complex structures such as this one.

There are a lot of ways in which Customize could be improved, but no one seems
to want to work on it. Many Emacs developers have, I think, written it off as
being either (1) superfluous (~real Emacs users don't use Customize~, meaning
that they don't use it) or (2) too difficult/bothersome (the Customize code is
hard to follow). No flames please - that's just one person's impression.





  reply	other threads:[~2008-10-15 14:50 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
2008-10-15 14:50     ` Drew Adams [this message]
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='006f01c92ed5$5b49e150$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jrwats@gmail.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.