aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-12-04 11:49:10 +0000
committerRichard M. Stallman2002-12-04 11:49:10 +0000
commitb271ee8d1521f0d480fff2da774da2ca29060f8e (patch)
treea6e2b264d1e27958ee10075bc5dbbb51d16a24d6
parent6748b96c72e20a678633c902a9f08324d7df4fb4 (diff)
downloademacs-b271ee8d1521f0d480fff2da774da2ca29060f8e.tar.gz
emacs-b271ee8d1521f0d480fff2da774da2ca29060f8e.zip
Simply require wid-edit and custom in eval-when-compile.
-rw-r--r--lisp/progmodes/cc-vars.el23
1 files changed, 3 insertions, 20 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 4a17f442b62..2b88a131776 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -50,26 +50,9 @@
50 50
51;; Pull in custom if it exists and is recent enough (the one in Emacs 51;; Pull in custom if it exists and is recent enough (the one in Emacs
52;; 19.34 isn't). 52;; 19.34 isn't).
53(eval 53(eval-when-compile
54 (cc-eval-when-compile 54 (require 'custom)
55 (condition-case nil 55 (require 'wid-edit))
56 (progn
57 (require 'custom)
58 (or (fboundp 'defcustom) (error ""))
59 (require 'wid-edit)
60 '(progn ; Compile in the require's.
61 (require 'custom)
62 (require 'wid-edit)))
63 (error
64 (message "Warning: Compiling without Customize support \
65since a (good enough) custom library wasn't found")
66 (cc-bytecomp-defmacro define-widget (name class doc &rest args))
67 (cc-bytecomp-defmacro defcustom (symbol value doc &rest args)
68 `(defvar ,symbol ,value ,doc))
69 (cc-bytecomp-defmacro custom-declare-variable (symbol value doc
70 &rest args)
71 `(defvar ,(eval symbol) ,(eval value) ,doc))
72 nil))))
73 56
74(cc-eval-when-compile 57(cc-eval-when-compile
75 ;; Need the function form of `backquote', which isn't standardized 58 ;; Need the function form of `backquote', which isn't standardized