From: shuhei-k Date: Mon, 5 Apr 1999 14:14:43 +0000 (+0000) Subject: New implementation using broken.el. X-Git-Tag: apel-9_16~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=02dd521058e6ca132c7dcf7549f37cd9614d9865;p=elisp%2Fapel.git New implementation using broken.el. --- diff --git a/pcustom.el b/pcustom.el index c687061..f4adf8f 100644 --- a/pcustom.el +++ b/pcustom.el @@ -1,8 +1,10 @@ ;;; pcustom.el -- a portable custom.el. ;; Copyright (C) 1999 Mikio Nakajima +;; Copyright (C) 1999 Shuhei KOBAYASHI ;; Author: Mikio Nakajima +;; Shuhei KOBAYASHI ;; Maintainer: Mikio Nakajima ;; Keywords: emulating, custom @@ -25,9 +27,18 @@ ;;; Code: -(condition-case nil - (require 'custom) - (error (require 'tinycustom)) ) +(require 'broken) + +(broken-facility new-custom + "New custom library not found; we use tinycustom for emulation." + (condition-case nil + (and (require 'custom) + (fboundp 'custom-declare-variable)) + (error nil))) + +(if-broken new-custom + (require 'tinycustom) + (require 'custom)) (provide 'pcustom)