X-Git-Url: http://git.chise.org/gitweb/?p=elisp%2Fapel.git;a=blobdiff_plain;f=pcustom.el;h=242ede6de8b57d7d2834023fa58538906bc80e08;hp=bd5099ed194fba39e41f40cb092a6b59947b5eae;hb=8b0dbe5092ae30b5092d7abf96649f96635d1060;hpb=8ea0cf57c248b6a4ba2f73288cc1b7cad582e171 diff --git a/pcustom.el b/pcustom.el index bd5099e..242ede6 100644 --- a/pcustom.el +++ b/pcustom.el @@ -1,7 +1,7 @@ ;;; pcustom.el -- a portable custom.el. +;; Copyright (C) 1999 Free Software Foundation, Inc. ;; Copyright (C) 1999 Mikio Nakajima -;; Copyright (C) 1999 Shuhei KOBAYASHI ;; Author: Mikio Nakajima ;; Shuhei KOBAYASHI @@ -21,8 +21,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -33,26 +33,17 @@ (static-if (condition-case nil ;; compile-time check. - ;; "new custom" requires widget library. - (and (require 'widget) - (require 'custom) - (fboundp 'custom-declare-variable)) - (error - (if (null (featurep 'pcustom)) - (progn - (message " - ** New CUSTOM library is not detected. If you have that one, e.g. v1.9962, - ** please specify the installed path of the new CUSTOM library in the file - ** \"subdirs.el\" and rebuild this package. For example, if you have - ** installed it in \"/usr/local/share/emacs/site-lisp/custom/\", put the - ** following line in the file \"/usr/local/share/emacs/site-lisp/subdirs.el\". - ** - ** (normal-top-level-add-to-load-path '(\"custom\")) - ** - ** Note that the argument can be a list of subdirectories. -") - (sleep-for 1))) - nil)) + (if (and (require 'custom) + (fboundp 'custom-declare-variable)) + ;; you have "new custom". + t + ;; you have custom, but it is "old". + (message "\ + ** \"old custom\" is loaded. See README if you want to use \"new custom\".") + (sleep-for 1) + nil) + ;; you don't have custom. + (error nil)) ;; you have "new custom". no load-time check. (require 'custom) ;; your custom is "old custom",