From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: Shouldn't custom.el load wid-edit.el?
Date: Wed, 26 Dec 2007 11:30:42 -0800 [thread overview]
Message-ID: <DHEEKFAFJEFOJHLCFPFDCEBOCDAA.drew.adams@oracle.com> (raw)
I did this, to let some code work also in older Emacs versions that don't
define type `color':
(defcustom... :type (if (get 'color 'widget-type) 'color 'string) ...)
I was surprised to find that in Emacs 22 also the type was `string'.
The problem was that the widget `color' is defined in wid-edit.el, which was
not loaded. So I now do this, which seems a bit heavy-handed for user code:
(defcustom... :type (if (and (require 'wid-edit nil t)
(get 'color 'widget-type))
'color
'string) ...)
Shouldn't custom.el, which defines `defcustom', load wid-edit.el? How else
can :type reasonably deal with types such as `color' that are defined in
wid-edit.el?
next reply other threads:[~2007-12-26 19:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 19:30 Drew Adams [this message]
2007-12-27 13:42 ` Shouldn't custom.el load wid-edit.el? Richard Stallman
2007-12-27 13:53 ` Lennart Borgman (gmail)
2007-12-27 15:52 ` Drew Adams
2007-12-27 15:45 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DHEEKFAFJEFOJHLCFPFDCEBOCDAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@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.