aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/net/tramp.el12
-rw-r--r--lisp/progmodes/cc-langs.el5
-rw-r--r--lisp/progmodes/cc-mode.el5
4 files changed, 29 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2169898670..aac855804cb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
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
122011-07-22 Michael Albinus <michael.albinus@gmx.de>
13
14 * net/tramp.el (tramp-file-name-handler): Avoid recursive
15 loading. (Bug#9114)
16
12011-07-21 Martin Rudalics <rudalics@gmx.at> 172011-07-21 Martin Rudalics <rudalics@gmx.at>
2 18
3 * window.el (display-buffer-pop-up-window) 19 * window.el (display-buffer-pop-up-window)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 82d878a6fa8..9b11ef58eab 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1876,7 +1876,17 @@ Falls back to normal file name handler if no Tramp file name handler exists."
1876 ;; Call the backend function. 1876 ;; Call the backend function.
1877 (if foreign 1877 (if foreign
1878 (condition-case err 1878 (condition-case err
1879 (apply foreign operation args) 1879 (let ((sf (symbol-function foreign)))
1880 ;; Some packages set the default directory to a
1881 ;; remote path, before respective Tramp packages
1882 ;; are already loaded. This results in
1883 ;; recursive loading. Therefore, we load the
1884 ;; Tramp packages locally.
1885 (when (and (listp sf) (eq (car sf) 'autoload))
1886 (let ((default-directory
1887 (tramp-compat-temporary-file-directory)))
1888 (load (cadr sf) 'noerror)))
1889 (apply foreign operation args))
1880 1890
1881 ;; Trace that somebody has interrupted the operation. 1891 ;; Trace that somebody has interrupted the operation.
1882 (quit 1892 (quit
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