]> code.delx.au - gnu-emacs/commitdiff
(Frecenter): Set minimize_tool_bar_window_p flag
authorKim F. Storm <storm@cua.dk>
Fri, 29 Dec 2006 23:29:27 +0000 (23:29 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 29 Dec 2006 23:29:27 +0000 (23:29 +0000)
when called without arg to redraw with minimum toolbar height.
Update doc string.

src/window.c

index 0db51c58eda4e0cd65967e3eeecb2f943bf2c662..babf72c2c52e4845cf8081bb1efa05428e0b31a3 100644 (file)
@@ -5727,8 +5727,10 @@ With prefix argument ARG, recenter putting point on screen line ARG
 relative to the current window.  If ARG is negative, it counts up from the
 bottom of the window.  (ARG should be less than the height of the window.)
 
-If ARG is omitted or nil, erase the entire frame and then
-redraw with point in the center of the current window.
+If ARG is omitted or nil, erase the entire frame and then redraw with point
+in the center of the current window.  If `auto-resize-tool-bars' is set to
+`grow-only', this resets the tool-bar's height to the minimum height needed.
+
 Just C-u as prefix means put point in the center of the window
 and redisplay normally--don't erase and redraw the frame.  */)
      (arg)
@@ -5753,8 +5755,10 @@ and redisplay normally--don't erase and redraw the frame.  */)
       for (i = 0; i < n_compositions; i++)
        composition_table[i]->font = NULL;
 
-      Fredraw_frame (w->frame);
-      SET_FRAME_GARBAGED (XFRAME (WINDOW_FRAME (w)));
+      WINDOW_XFRAME (w)->minimize_tool_bar_window_p = 1;
+
+      Fredraw_frame (WINDOW_FRAME (w));
+      SET_FRAME_GARBAGED (WINDOW_XFRAME (w));
       center_p = 1;
     }
   else if (CONSP (arg)) /* Just C-u. */