]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix default width not being 80, but 77.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 11 Aug 2014 13:16:31 +0000 (15:16 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 11 Aug 2014 13:16:31 +0000 (15:16 +0200)
* nsfns.m (Fx_create_frame): Call adjust_frame_size,
set f->official.

src/ChangeLog
src/nsfns.m

index aa2f95907eb66c350a70f8bfddf2c4c142cfaf4b..aebe78e4dab5a63950406dda03d02ab37f41cfe4 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsfns.m (Fx_create_frame): Call adjust_frame_size,
+       set f->official.
+
 2014-08-11  Glenn Morris  <rgm@gnu.org>
 
        * fileio.c: Revert 2013-01-31 change, which chose coding system for
index 8bce1da2e5dcc1e791e652445f0f672c74e82f94..ca8f4922ccd927b0cb5d95883aee3490047a566b 100644 (file)
@@ -1267,11 +1267,8 @@ This function is an internal primitive--use `make-frame' instead.  */)
   init_frame_faces (f);
 
   /* Read comment about this code in corresponding place in xfns.c.  */
-  width = FRAME_TEXT_WIDTH (f);
-  height = FRAME_TEXT_HEIGHT (f);
-  FRAME_TEXT_HEIGHT (f) = 0;
-  SET_FRAME_WIDTH (f, 0);
-  change_frame_size (f, width, height, 1, 0, 0, 1);
+  adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
+                    FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1);
 
   /* The resources controlling the menu-bar and tool-bar are
      processed specially at startup, and reflected in the mode
@@ -1342,11 +1339,10 @@ This function is an internal primitive--use `make-frame' instead.  */)
   x_default_parameter (f, parms, Qfullscreen, Qnil,
                        "fullscreen", "Fullscreen", RES_TYPE_SYMBOL);
 
-  width = FRAME_TEXT_WIDTH (f);
-  height = FRAME_TEXT_HEIGHT (f);
-  FRAME_TEXT_HEIGHT (f) = 0;
-  SET_FRAME_WIDTH (f, 0);
-  change_frame_size (f, width, height, 1, 0, 0, 1);
+  /* Consider frame official, now.  */
+  f->official = true;
+
+  adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, 1);
 
   if (! f->output_data.ns->explicit_parent)
     {