aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2011-07-22 12:53:46 +0000
committerAlan Mackenzie2011-07-22 12:53:46 +0000
commita9901f61c7bb3e602645baec7b705c44f3c87929 (patch)
treea733375e6f9ae7b8df900c38e6edf86be45b8764
parent11d074b2952909def6ab8e0f8313e84ec440cdc9 (diff)
downloademacs-a9901f61c7bb3e602645baec7b705c44f3c87929.tar.gz
emacs-a9901f61c7bb3e602645baec7b705c44f3c87929.zip
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.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/progmodes/cc-langs.el5
-rw-r--r--lisp/progmodes/cc-mode.el5
3 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 848d991feed..aac855804cb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12011-07-22 Alan Mackenzie <acm@muc.de>
2
3 Prevent cc-langs.elc being loaded at run time.
4
5 * progmodes/cc-mode.el: Remove two autoload forms which loaded
6 cc-langs.
7
8 * /progmodes/cc-langs.el (c-make-init-lang-vars-fun): Don't emit
9 "(require 'cc-langs)". Quote a form so it will evaluate at
10 (cc-mode's) compilation time.
11
12011-07-22 Michael Albinus <michael.albinus@gmx.de> 122011-07-22 Michael Albinus <michael.albinus@gmx.de>
2 13
3 * net/tramp.el (tramp-file-name-handler): Avoid recursive 14 * net/tramp.el (tramp-file-name-handler): Avoid recursive
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."
3092 ;; ',mode ,c-version c-version) 3092 ;; ',mode ,c-version c-version)
3093 ;; (put ',mode 'c-has-warned-lang-consts t)) 3093 ;; (put ',mode 'c-has-warned-lang-consts t))
3094 3094
3095 (require 'cc-langs)
3096 (setq source-eval t) 3095 (setq source-eval t)
3097 (let ((init (append (cdr c-emacs-variable-inits) 3096 (let ((init ',(append (cdr c-emacs-variable-inits)
3098 (cdr c-lang-variable-inits)))) 3097 (cdr c-lang-variable-inits))))
3099 (while init 3098 (while init
3100 (setq current-var (caar init)) 3099 (setq current-var (caar init))
3101 (set (caar init) (eval (cadar init))) 3100 (set (caar init) (eval (cadar init)))
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 1adc6c2eac0..4299c413312 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -120,11 +120,6 @@
120; ' 120; '
121(require 'cc-fonts) ;) 121(require 'cc-fonts) ;)
122 122
123;; cc-langs isn't loaded when we're byte compiled, so add autoload
124;; directives for the interface functions.
125(autoload 'c-make-init-lang-vars-fun "cc-langs")
126(autoload 'c-init-language-vars "cc-langs" nil nil 'macro)
127
128 123
129;; Other modes and packages which depend on CC Mode should do the 124;; Other modes and packages which depend on CC Mode should do the
130;; following to make sure everything is loaded and available for their 125;; following to make sure everything is loaded and available for their