unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: RE: Shouldn't custom.el load wid-edit.el?
Date: Thu, 27 Dec 2007 07:45:33 -0800	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACGEAECGAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1J7t0S-0006en-Bj@fencepost.gnu.org>

>     Shouldn't custom.el, which defines `defcustom', load wid-edit.el?
>
> No!  We don't want to load wid-edit.el all the time.
> We only load that when people start to make widgets.

But it means that `defcustom' does not recognize those built-in Emacs types
that wid-edit.el defines. Does it make sense that `defcustom' does not
recognize a predefined type such as `color' during the evaluation of its
:type sexp? For most Emacs users and Elisp programmers, :type is a
`defcustom' thing, not a widget thing - that's where they run into it.

`defcustom' predefined types are also widgets, and some of those are defined
in wid-edit.el.  custom.el doesn't stand on its own. Users, including
programmers, will expect `defcustom' types to be known by, well,
`defcustom'.

To repeat my question:

>> How else can [defcustom's] :type reasonably deal with types such
>> as `color' that are defined in wid-edit.el?

  parent reply	other threads:[~2007-12-27 15:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-26 19:30 Shouldn't custom.el load wid-edit.el? Drew Adams
2007-12-27 13:42 ` Richard Stallman
2007-12-27 13:53   ` Lennart Borgman (gmail)
2007-12-27 15:52     ` Drew Adams
2007-12-27 15:45   ` Drew Adams [this message]
2007-12-28 13:54     ` Richard Stallman
2007-12-28 15:39       ` Drew Adams
2007-12-29 13:51         ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=BNELLINCGFJLDJIKDGACGEAECGAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).