From: yamaoka Date: Tue, 9 Nov 1999 09:43:06 +0000 (+0000) Subject: Warn if the new custom library is not found at the compile time. X-Git-Tag: of-tm-8_8~5 X-Git-Url: http://git.chise.org/gitweb/?p=elisp%2Fapel.git;a=commitdiff_plain;h=93dbc292d18b23df55796d2b82d865210bcfe7fd Warn if the new custom library is not found at the compile time. --- diff --git a/pcustom.el b/pcustom.el index 927a4e6..aa6a9f1 100644 --- a/pcustom.el +++ b/pcustom.el @@ -39,7 +39,22 @@ (and (require 'widget) (require 'custom) (fboundp 'custom-declare-variable)) - (error nil)) + (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)) ;; you have "new custom". no load-time check. (require 'custom) ;; your custom is "old custom", or you don't have custom library