New implementation using broken.el.
[elisp/apel.git] / pcustom.el
1 ;;; pcustom.el -- a portable custom.el.
2
3 ;; Copyright (C) 1999 Mikio Nakajima <minakaji@osaka.email.ne.jp>
4 ;; Copyright (C) 1999 Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
5
6 ;; Author: Mikio Nakajima <minakaji@osaka.email.ne.jp>
7 ;;      Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
8 ;; Maintainer: Mikio Nakajima <minakaji@osaka.email.ne.jp>
9 ;; Keywords: emulating, custom
10
11 ;; This file is part of APEL (A Portable Emacs Library).
12
13 ;; This program is free software; you can redistribute it and/or
14 ;; modify it under the terms of the GNU General Public License as
15 ;; published by the Free Software Foundation; either version 2, or (at
16 ;; your option) any later version.
17
18 ;; This program is distributed in the hope that it will be useful, but
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 ;; General Public License for more details.
22
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26 ;; Boston, MA 02111-1307, USA.
27
28 ;;; Code:
29
30 (require 'broken)
31
32 (broken-facility new-custom
33   "New custom library not found; we use tinycustom for emulation."
34   (condition-case nil
35       (and (require 'custom)
36            (fboundp 'custom-declare-variable))
37     (error nil)))
38
39 (if-broken new-custom
40     (require 'tinycustom)
41   (require 'custom))
42
43 (provide 'pcustom)
44
45 ;; end of pcustom.el