aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-07-25 09:26:30 -0700
committerPaul Eggert2011-07-25 09:26:30 -0700
commitea8db5520cb3d1aa7c682cbcd22f80e7a9188169 (patch)
tree3e24b36136cd3b3c1b7f5d60a011997f98364e29
parentccd80c5525ba298b055e43f83830e9090b9b1887 (diff)
parent2238127283d703f38765f9b3f6a64f799d18e9e5 (diff)
downloademacs-ea8db5520cb3d1aa7c682cbcd22f80e7a9188169.tar.gz
emacs-ea8db5520cb3d1aa7c682cbcd22f80e7a9188169.zip
Merge from trunk.
-rw-r--r--ChangeLog2
-rw-r--r--admin/ChangeLog2
-rw-r--r--leim/ChangeLog2
-rw-r--r--lib-src/ChangeLog2
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nnimap.el10
-rw-r--r--lisp/image.el4
-rw-r--r--msdos/ChangeLog2
-rw-r--r--src/ChangeLog8
-rw-r--r--src/xdisp.c12
11 files changed, 35 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c85cf769cb..5b9dc4d88b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Merge from gnulib, using build-aux to remove clutter. 3 Merge from gnulib, using build-aux to remove clutter.
4 * m4/largefile.m4: New file, so that Emacs does not mess up when 4 * m4/largefile.m4: New file, so that Emacs does not mess up when
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 8b0ed10cb3b..c934a3c1b57 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,4 +1,4 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Merge from gnulib. 3 Merge from gnulib.
4 * notes/copyright: The files compile, config.guess, config.sub, 4 * notes/copyright: The files compile, config.guess, config.sub,
diff --git a/leim/ChangeLog b/leim/ChangeLog
index 634ae719db7..ce25372c69b 100644
--- a/leim/ChangeLog
+++ b/leim/ChangeLog
@@ -1,4 +1,4 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * Makefile.in (install): install-sh is now in build-aux. 3 * Makefile.in (install): install-sh is now in build-aux.
4 4
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index fe624bb80ac..aff4dc7630c 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,4 +1,4 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved 3 * Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
4 to build-aux. 4 to build-aux.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4f03b9b97d5..93674179121 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-07-25 Deniz Dogan <deniz@dogan.se>
2
3 * image.el (insert-image): Clarifying docstring.
4
12011-07-24 Michael Albinus <michael.albinus@gmx.de> 52011-07-24 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * net/tramp-sh.el (tramp-barf-unless-okay): Return the value of 7 * net/tramp-sh.el (tramp-barf-unless-okay): Return the value of
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 400abd51c27..f90e180b128 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12011-07-24 Andrew Cohen <cohen@andy.bu.edu>
2
3 * nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail.
4
12011-07-23 Andrew Cohen <cohen@andy.bu.edu> 52011-07-23 Andrew Cohen <cohen@andy.bu.edu>
2 6
3 * nnir.el (nnir-search-thread): New function to make an nnir group 7 * nnir.el (nnir-search-thread): New function to make an nnir group
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 8a0d635ef7b..52de48869d8 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1947,13 +1947,13 @@ textual parts.")
1947 (refs (split-string 1947 (refs (split-string
1948 (or (mail-header-references header) 1948 (or (mail-header-references header)
1949 ""))) 1949 "")))
1950 (value 1950 (value
1951 (format 1951 (format
1952 "(OR HEADER REFERENCES %s HEADER Message-Id %s)" 1952 "(OR HEADER REFERENCES %S HEADER Message-Id %S)"
1953 id id))) 1953 id id)))
1954 (dolist (refid refs value) 1954 (dolist (refid refs value)
1955 (setq value (format 1955 (setq value (format
1956 "(OR (OR HEADER Message-Id %s HEADER REFERENCES %s) %s)" 1956 "(OR (OR HEADER Message-Id %S HEADER REFERENCES %S) %s)"
1957 refid refid value))))) 1957 refid refid value)))))
1958 1958
1959 1959
diff --git a/lisp/image.el b/lisp/image.el
index c6862622639..30362251664 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -413,8 +413,8 @@ means display it in the right marginal area."
413(defun insert-image (image &optional string area slice) 413(defun insert-image (image &optional string area slice)
414 "Insert IMAGE into current buffer at point. 414 "Insert IMAGE into current buffer at point.
415IMAGE is displayed by inserting STRING into the current buffer 415IMAGE is displayed by inserting STRING into the current buffer
416with a `display' property whose value is the image. STRING is 416with a `display' property whose value is the image. STRING
417defaulted if you omit it. 417defaults to the empty string if you omit it.
418AREA is where to display the image. AREA nil or omitted means 418AREA is where to display the image. AREA nil or omitted means
419display it in the text area, a value of `left-margin' means 419display it in the text area, a value of `left-margin' means
420display it in the left marginal area, a value of `right-margin' 420display it in the left marginal area, a value of `right-margin'
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index f01a60333ad..1b737575d94 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,4 +1,4 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves 3 * sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves
4 from top level to build-aux/snippet. 4 from top level to build-aux/snippet.
diff --git a/src/ChangeLog b/src/ChangeLog
index 883c0d84bf6..dc81626038d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,7 +1,13 @@
12011-07-24 Paul Eggert <eggert@cs.ucla.edu> 12011-07-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * Makefile.in (gl-stamp): move-if-change is now in build-aux. 3 * Makefile.in (gl-stamp): move-if-change is now in build-aux.
4 4
52011-07-25 Eli Zaretskii <eliz@gnu.org>
6
7 * xdisp.c (compute_display_string_pos): Fix logic of caching
8 previous display string position. Initialize cached_prev_pos to
9 -1. Fixes slow-down at the beginning of a buffer.
10
52011-07-24 Eli Zaretskii <eliz@gnu.org> 112011-07-24 Eli Zaretskii <eliz@gnu.org>
6 12
7 * xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil' 13 * xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil'
diff --git a/src/xdisp.c b/src/xdisp.c
index 8b164008c3f..7493fbff008 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3137,7 +3137,7 @@ next_overlay_change (EMACS_INT pos)
3137/* Record one cached display string position found recently by 3137/* Record one cached display string position found recently by
3138 compute_display_string_pos. */ 3138 compute_display_string_pos. */
3139static EMACS_INT cached_disp_pos; 3139static EMACS_INT cached_disp_pos;
3140static EMACS_INT cached_prev_pos; 3140static EMACS_INT cached_prev_pos = -1;
3141static struct buffer *cached_disp_buffer; 3141static struct buffer *cached_disp_buffer;
3142static int cached_disp_modiff; 3142static int cached_disp_modiff;
3143static int cached_disp_overlay_modiff; 3143static int cached_disp_overlay_modiff;
@@ -3184,18 +3184,22 @@ compute_display_string_pos (struct text_pos *position,
3184 && BUF_MODIFF (b) == cached_disp_modiff 3184 && BUF_MODIFF (b) == cached_disp_modiff
3185 && BUF_OVERLAY_MODIFF (b) == cached_disp_overlay_modiff) 3185 && BUF_OVERLAY_MODIFF (b) == cached_disp_overlay_modiff)
3186 { 3186 {
3187 if (cached_prev_pos 3187 if (cached_prev_pos >= 0
3188 && cached_prev_pos < charpos && charpos <= cached_disp_pos) 3188 && cached_prev_pos < charpos && charpos <= cached_disp_pos)
3189 return cached_disp_pos; 3189 return cached_disp_pos;
3190 /* Handle overstepping either end of the known interval. */ 3190 /* Handle overstepping either end of the known interval. */
3191 if (charpos > cached_disp_pos) 3191 if (charpos > cached_disp_pos)
3192 cached_prev_pos = cached_disp_pos; 3192 cached_prev_pos = cached_disp_pos;
3193 else /* charpos <= cached_prev_pos */ 3193 else /* charpos <= cached_prev_pos */
3194 cached_prev_pos = max (charpos - 1, BEGV); 3194 cached_prev_pos = max (charpos - 1, 0);
3195 } 3195 }
3196 3196
3197 /* Record new values in the cache. */ 3197 /* Record new values in the cache. */
3198 cached_disp_buffer = b; 3198 if (b != cached_disp_buffer)
3199 {
3200 cached_disp_buffer = b;
3201 cached_prev_pos = max (charpos - 1, 0);
3202 }
3199 cached_disp_modiff = BUF_MODIFF (b); 3203 cached_disp_modiff = BUF_MODIFF (b);
3200 cached_disp_overlay_modiff = BUF_OVERLAY_MODIFF (b); 3204 cached_disp_overlay_modiff = BUF_OVERLAY_MODIFF (b);
3201 } 3205 }