From 10870c85445a48641b4f9cea91f8fbc7587eecde Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Mon, 30 Nov 2015 18:24:13 +0100 Subject: [PATCH] Run `window-size-change-functions' also when reading from minibuffer * src/xdisp.c (redisplay_internal): Run `window-size-change-functions' also when reading from minibuffer. --- src/xdisp.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 50c5518114e..d1a10ca3c31 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13581,6 +13581,27 @@ redisplay_internal (void) && (current_buffer->clip_changed || window_outdated (w)) && resize_mini_window (w, false)) { + if (sf->redisplay) + { + Lisp_Object functions; + ptrdiff_t count1 = SPECPDL_INDEX (); + + record_unwind_save_match_data (); + + /* Clear flag first in case we get an error below. */ + FRAME_WINDOW_SIZES_CHANGED (sf) = false; + functions = Vwindow_size_change_functions; + + while (CONSP (functions)) + { + if (!EQ (XCAR (functions), Qt)) + call1 (XCAR (functions), selected_frame); + functions = XCDR (functions); + } + + unbind_to (count1, Qnil); + } + /* Resized active mini-window to fit the size of what it is showing if its contents might have changed. */ must_finish = true; -- 2.39.5