diff options
author | Alan Mackenzie <acm@muc.de> | 2011-07-22 12:53:46 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2011-07-22 12:53:46 +0000 |
commit | a9901f61c7bb3e602645baec7b705c44f3c87929 (patch) | |
tree | a733375e6f9ae7b8df900c38e6edf86be45b8764 /lisp/progmodes/cc-langs.el | |
parent | 11d074b2952909def6ab8e0f8313e84ec440cdc9 (diff) | |
download | emacs-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.el | 5 |
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))) |