From: Gerd Moellmann Date: Sat, 18 Nov 2000 14:15:00 +0000 (+0000) Subject: (resize_mini_window): Temporarily change to the X-Git-Tag: emacs-pretest-21.0.91~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1bfdbe4394d91f2645d60da16aced68246c74d06;p=emacs.git (resize_mini_window): Temporarily change to the mini-window's buffer if necessary. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3e361b4a17d..0ac29af5c2d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-11-18 Gerd Moellmann + * 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. diff --git a/src/xdisp.c b/src/xdisp.c index 9b4df8444d4..b7343c47caa 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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;