summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-langs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2011-07-22 12:53:46 +0000
committerAlan Mackenzie <acm@muc.de>2011-07-22 12:53:46 +0000
commita9901f61c7bb3e602645baec7b705c44f3c87929 (patch)
treea733375e6f9ae7b8df900c38e6edf86be45b8764 /lisp/progmodes/cc-langs.el
parent11d074b2952909def6ab8e0f8313e84ec440cdc9 (diff)
downloademacs-a9901f61c7bb3e602645baec7b705c44f3c87929.tar.gz
Prevent cc-langs.elc being loaded at run time.
cc-mode.el: Remove two autoload forms which loaded cc-langs. cc-langs.el (c-make-init-lang-vars-fun): Don't emit "(require 'cc-langs)". Quote a form so it will evaluate at (cc-mode's) compilation time.
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r--lisp/progmodes/cc-langs.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 9ce23a080d6..d7ef278174a 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -3092,10 +3092,9 @@ accomplish that conveniently."
;; ',mode ,c-version c-version)
;; (put ',mode 'c-has-warned-lang-consts t))
- (require 'cc-langs)
(setq source-eval t)
- (let ((init (append (cdr c-emacs-variable-inits)
- (cdr c-lang-variable-inits))))
+ (let ((init ',(append (cdr c-emacs-variable-inits)
+ (cdr c-lang-variable-inits))))
(while init
(setq current-var (caar init))
(set (caar init) (eval (cadar init)))