]> git.eshelyaron.com Git - emacs.git/commitdiff
(resize_mini_window): Temporarily change to the
authorGerd Moellmann <gerd@gnu.org>
Sat, 18 Nov 2000 14:15:00 +0000 (14:15 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 18 Nov 2000 14:15:00 +0000 (14:15 +0000)
mini-window's buffer if necessary.

src/ChangeLog
src/xdisp.c

index 3e361b4a17d24e8d10ffa5112a1ad6ba45c1d07c..0ac29af5c2db9e6ccb92f89c170bfb0433ce4596 100644 (file)
@@ -1,5 +1,8 @@
 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (resize_mini_window): Change to the mini-window's 
+       buffer if necessary.
+
        * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
        the tooltip obscures less text under it.
 
index 9b4df8444d4e91776493569d03d60f39378ab94a..b7343c47caa3b7cf044f694f0c8aca98beb5d3bb 100644 (file)
@@ -6128,6 +6128,13 @@ resize_mini_window (w, exact_p)
       int height, max_height;
       int unit = CANON_Y_UNIT (f);
       struct text_pos start;
+      struct buffer *old_current_buffer = NULL;
+
+      if (current_buffer != XBUFFER (w->buffer))
+       {
+         old_current_buffer = current_buffer;
+         set_buffer_internal (XBUFFER (w->buffer));
+       }
 
       init_iterator (&it, w, BEGV, BEGV_BYTE, NULL, DEFAULT_FACE_ID);
 
@@ -6215,6 +6222,9 @@ resize_mini_window (w, exact_p)
              window_height_changed_p = XFASTINT (w->height) != old_height;
            }
        }
+
+      if (old_current_buffer)
+       set_buffer_internal (old_current_buffer);
     }
 
   return window_height_changed_p;