From: shuhei-k Date: Thu, 17 Jun 1999 01:05:42 +0000 (+0000) Subject: Load "custom" anyway. X-Git-Tag: apel-9_20~23 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99356061582b43409bb7d05dd887186aba575ecf;p=elisp%2Fapel.git Load "custom" anyway. --- diff --git a/pcustom.el b/pcustom.el index 214efe7..927a4e6 100644 --- a/pcustom.el +++ b/pcustom.el @@ -46,12 +46,12 @@ ;; at compile-time. (or (condition-case nil ;; load-time check. - ;; "new custom" requires widget library. - (and (require 'widget) - (require 'custom) + ;; load "custom" if exists. + (and (require 'custom) (fboundp 'custom-declare-variable)) (error nil)) - ;; load emulation version. + ;; your custom is "old custom", or you don't have custom library. + ;; load emulation version of "new custom". (require 'tinycustom))) (provide 'pcustom)