1 ;;; pcustom.el -- a portable custom.el.
3 ;; Copyright (C) 1999 Mikio Nakajima <minakaji@osaka.email.ne.jp>
4 ;; Copyright (C) 1999 Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
6 ;; Author: Mikio Nakajima <minakaji@osaka.email.ne.jp>
7 ;; Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
8 ;; Keywords: emulating, custom
10 ;; This file is part of APEL (A Portable Emacs Library).
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.
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.
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.
32 (eval-when-compile (require 'static))
34 (static-if (condition-case nil
35 ;; compile-time check.
36 ;; "new custom" requires widget library.
37 (and (require 'widget)
39 (fboundp 'custom-declare-variable))
41 (if (null (featurep 'pcustom))
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\".
50 ** (normal-top-level-add-to-load-path '(\"custom\"))
52 ** Note that the argument can be a list of subdirectories.
56 ;; you have "new custom". no load-time check.
58 ;; your custom is "old custom",
59 ;; or you don't have custom library at compile-time.
60 (or (condition-case nil
62 ;; load "custom" if exists.
63 (and (require 'custom)
64 (fboundp 'custom-declare-variable))
66 ;; your custom is "old custom",
67 ;; or you don't have custom library.
68 ;; load emulation version of "new custom".
69 (require 'tinycustom)))
73 ;;; pcustom.el ends here