aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c4
6 files changed, 36 insertions, 11 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
diff --git a/src/ChangeLog b/src/ChangeLog
index 65cd07df0ae..0b06e5bf2c0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-07-22 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object
4 is an integer, which is important for empty lines. (Bug#9149)
5
12011-07-22 Chong Yidong <cyd@stupidchicken.com> 62011-07-22 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * frame.c (Fmodify_frame_parameters): In tty case, update the 8 * frame.c (Fmodify_frame_parameters): In tty case, update the
diff --git a/src/xdisp.c b/src/xdisp.c
index ecb7007e1f3..0effc63c3db 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25214,7 +25214,7 @@ rows_from_pos_range (struct window *w,
25214 25214
25215 while (g < e) 25215 while (g < e)
25216 { 25216 {
25217 if (BUFFERP (g->object) 25217 if ((BUFFERP (g->object) || INTEGERP (g->object))
25218 && start_charpos <= g->charpos && g->charpos < end_charpos) 25218 && start_charpos <= g->charpos && g->charpos < end_charpos)
25219 *start = row; 25219 *start = row;
25220 g++; 25220 g++;
@@ -25264,7 +25264,7 @@ rows_from_pos_range (struct window *w,
25264 25264
25265 while (g < e) 25265 while (g < e)
25266 { 25266 {
25267 if (BUFFERP (g->object) 25267 if ((BUFFERP (g->object) || INTEGERP (g->object))
25268 && start_charpos <= g->charpos && g->charpos < end_charpos) 25268 && start_charpos <= g->charpos && g->charpos < end_charpos)
25269 break; 25269 break;
25270 g++; 25270 g++;