]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent cc-langs.elc being loaded at run time.
authorAlan Mackenzie <acm@muc.de>
Fri, 22 Jul 2011 12:53:46 +0000 (12:53 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 22 Jul 2011 12:53:46 +0000 (12:53 +0000)
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.

lisp/ChangeLog
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el

index 848d991feed71b2fb72df29cbf4aaf81bcaee09b..aac855804cbe05eb5b453b1dd8e6a9d72f18a43c 100644 (file)
@@ -1,3 +1,14 @@
+2011-07-22  Alan Mackenzie  <acm@muc.de>
+
+       Prevent cc-langs.elc being loaded at run time.
+
+       * progmodes/cc-mode.el: Remove two autoload forms which loaded
+       cc-langs.
+
+       * /progmodes/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.
+
 2011-07-22  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-file-name-handler): Avoid recursive
index 9ce23a080d6b6b32d71c749a4db262af335bc78f..d7ef278174a0ebff22c5f83cafb4fa9274069284 100644 (file)
@@ -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)))
index 1adc6c2eac0896d5ccf4a1f84eb78508894daea1..4299c41331214910ba07fcb7340a490488168ecd 100644 (file)
 ;   '
 (require 'cc-fonts) ;)
 
-;; cc-langs isn't loaded when we're byte compiled, so add autoload
-;; directives for the interface functions.
-(autoload 'c-make-init-lang-vars-fun "cc-langs")
-(autoload 'c-init-language-vars "cc-langs" nil nil 'macro)
-
 \f
 ;; Other modes and packages which depend on CC Mode should do the
 ;; following to make sure everything is loaded and available for their