Add product information.
[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 ;; Keywords: emulating, custom
9
10 ;; This file is part of APEL (A Portable Emacs Library).
11
12 ;; This program is free software; you can redistribute it and/or
13 ;; modify it under the terms of the GNU General Public License as
14 ;; published by the Free Software Foundation; either version 2, or (at
15 ;; your option) any later version.
16
17 ;; This program is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with this program; see the file COPYING.  If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
26
27 ;;; Commentary:
28
29 ;;; Code:
30
31 (require 'poe)
32 (eval-when-compile (require 'static))
33
34 (static-if (condition-case nil
35                ;; compile-time check.
36                ;; "new custom" requires widget library.
37                (and (require 'widget)
38                     (require 'custom)
39                     (fboundp 'custom-declare-variable))
40              (error
41               (if (null (featurep 'pcustom))
42                   (progn
43                     (message "
44   ** New CUSTOM library is not detected.  If you have that one, e.g. v1.9962,
45   ** please specify the installed path of the new CUSTOM library in the file
46   ** \"subdirs.el\" and rebuild this package.  For example, if you have
47   ** installed it in \"/usr/local/share/emacs/site-lisp/custom/\", put the
48   ** following line in the file \"/usr/local/share/emacs/site-lisp/subdirs.el\".
49   **
50   **   (normal-top-level-add-to-load-path '(\"custom\"))
51   **
52   ** Note that the argument can be a list of subdirectories.
53 ")
54                     (sleep-for 1)))
55               nil))
56     ;; you have "new custom". no load-time check.
57     (require 'custom)
58   ;; your custom is "old custom",
59   ;; or you don't have custom library at compile-time.
60   (or (condition-case nil
61           ;; load-time check.
62           ;; load "custom" if exists.
63           (and (require 'custom)
64                (fboundp 'custom-declare-variable))
65         (error nil))
66       ;; your custom is "old custom",
67       ;; or you don't have custom library.
68       ;; load emulation version of "new custom".
69       (require 'tinycustom)))
70
71 (require 'product)
72 (product-provide (provide 'pcustom) (require 'apel-ver))
73
74 ;;; pcustom.el ends here