X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=pcustom.el;h=927a4e620f6a3fe9cc8e4ffe21342cb2c483aec7;hb=6b86cc971bead7d986b747ead7cd3a6d748bbf64;hp=214efe72ac86e0b854bfbecbdae022c2d82201c3;hpb=74895ec9005d5a60baee33d7da17740a04b36b25;p=elisp%2Fapel.git 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)