]> code.delx.au - gnu-emacs/commitdiff
Run `window-size-change-functions' also when reading from minibuffer
authorMartin Rudalics <rudalics@gmx.at>
Mon, 30 Nov 2015 17:24:13 +0000 (18:24 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 30 Nov 2015 17:24:13 +0000 (18:24 +0100)
* src/xdisp.c (redisplay_internal): Run `window-size-change-functions'
also when reading from minibuffer.

src/xdisp.c

index 50c5518114e5d7403ea1f7b7de9c53eea609f00e..d1a10ca3c3146bf7c2d2d5bbd84e399b12da3d52 100644 (file)
@@ -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;