aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2015-11-30 18:24:13 +0100
committerMartin Rudalics2015-11-30 18:24:13 +0100
commit10870c85445a48641b4f9cea91f8fbc7587eecde (patch)
tree65a8f7c82f61ad757ecdf0ba7f7375b86da8f09b
parentde203a67d4c3762edd8ee7fdd346b4728331354d (diff)
downloademacs-10870c85445a48641b4f9cea91f8fbc7587eecde.tar.gz
emacs-10870c85445a48641b4f9cea91f8fbc7587eecde.zip
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.
-rw-r--r--src/xdisp.c21
1 files changed, 21 insertions, 0 deletions
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)
13581 && (current_buffer->clip_changed || window_outdated (w)) 13581 && (current_buffer->clip_changed || window_outdated (w))
13582 && resize_mini_window (w, false)) 13582 && resize_mini_window (w, false))
13583 { 13583 {
13584 if (sf->redisplay)
13585 {
13586 Lisp_Object functions;
13587 ptrdiff_t count1 = SPECPDL_INDEX ();
13588
13589 record_unwind_save_match_data ();
13590
13591 /* Clear flag first in case we get an error below. */
13592 FRAME_WINDOW_SIZES_CHANGED (sf) = false;
13593 functions = Vwindow_size_change_functions;
13594
13595 while (CONSP (functions))
13596 {
13597 if (!EQ (XCAR (functions), Qt))
13598 call1 (XCAR (functions), selected_frame);
13599 functions = XCDR (functions);
13600 }
13601
13602 unbind_to (count1, Qnil);
13603 }
13604
13584 /* Resized active mini-window to fit the size of what it is 13605 /* Resized active mini-window to fit the size of what it is
13585 showing if its contents might have changed. */ 13606 showing if its contents might have changed. */
13586 must_finish = true; 13607 must_finish = true;