diff options
| author | Jan Djärv | 2014-08-11 15:16:31 +0200 |
|---|---|---|
| committer | Jan Djärv | 2014-08-11 15:16:31 +0200 |
| commit | fe2f33e8da2e2c7950214eafdfd610f164025baf (patch) | |
| tree | 79de08b7ff2a0491bc51e632c4be23d209196724 | |
| parent | c7367d2de3343e56171c4fe6d439a3ed5f40d06c (diff) | |
| download | emacs-fe2f33e8da2e2c7950214eafdfd610f164025baf.tar.gz emacs-fe2f33e8da2e2c7950214eafdfd610f164025baf.zip | |
Fix default width not being 80, but 77.
* nsfns.m (Fx_create_frame): Call adjust_frame_size,
set f->official.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsfns.m | 16 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index aa2f95907eb..aebe78e4dab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-08-11 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsfns.m (Fx_create_frame): Call adjust_frame_size, | ||
| 4 | set f->official. | ||
| 5 | |||
| 1 | 2014-08-11 Glenn Morris <rgm@gnu.org> | 6 | 2014-08-11 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * fileio.c: Revert 2013-01-31 change, which chose coding system for | 8 | * fileio.c: Revert 2013-01-31 change, which chose coding system for |
diff --git a/src/nsfns.m b/src/nsfns.m index 8bce1da2e5d..ca8f4922ccd 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1267,11 +1267,8 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1267 | init_frame_faces (f); | 1267 | init_frame_faces (f); |
| 1268 | 1268 | ||
| 1269 | /* Read comment about this code in corresponding place in xfns.c. */ | 1269 | /* Read comment about this code in corresponding place in xfns.c. */ |
| 1270 | width = FRAME_TEXT_WIDTH (f); | 1270 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), |
| 1271 | height = FRAME_TEXT_HEIGHT (f); | 1271 | FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1); |
| 1272 | FRAME_TEXT_HEIGHT (f) = 0; | ||
| 1273 | SET_FRAME_WIDTH (f, 0); | ||
| 1274 | change_frame_size (f, width, height, 1, 0, 0, 1); | ||
| 1275 | 1272 | ||
| 1276 | /* The resources controlling the menu-bar and tool-bar are | 1273 | /* The resources controlling the menu-bar and tool-bar are |
| 1277 | processed specially at startup, and reflected in the mode | 1274 | processed specially at startup, and reflected in the mode |
| @@ -1342,11 +1339,10 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1342 | x_default_parameter (f, parms, Qfullscreen, Qnil, | 1339 | x_default_parameter (f, parms, Qfullscreen, Qnil, |
| 1343 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); | 1340 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); |
| 1344 | 1341 | ||
| 1345 | width = FRAME_TEXT_WIDTH (f); | 1342 | /* Consider frame official, now. */ |
| 1346 | height = FRAME_TEXT_HEIGHT (f); | 1343 | f->official = true; |
| 1347 | FRAME_TEXT_HEIGHT (f) = 0; | 1344 | |
| 1348 | SET_FRAME_WIDTH (f, 0); | 1345 | adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, 1); |
| 1349 | change_frame_size (f, width, height, 1, 0, 0, 1); | ||
| 1350 | 1346 | ||
| 1351 | if (! f->output_data.ns->explicit_parent) | 1347 | if (! f->output_data.ns->explicit_parent) |
| 1352 | { | 1348 | { |