diff options
| author | Jim Blandy | 1992-08-14 02:31:41 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-08-14 02:31:41 +0000 |
| commit | cc38027b7556ef40140cc95f14ab31fba3f088d4 (patch) | |
| tree | f0416272c8d736370cde3c4de61f476270110ba6 /src | |
| parent | 190721ac7bd6c8aef9a71ac6313abcb9b415bb17 (diff) | |
| download | emacs-cc38027b7556ef40140cc95f14ab31fba3f088d4.tar.gz emacs-cc38027b7556ef40140cc95f14ab31fba3f088d4.zip | |
* frame.c (make_frame): Stop passing zero to make_window; it's not
expecting any arguments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/src/frame.c b/src/frame.c index bd196b84c8b..88daafc157d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -20,11 +20,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 20 | #include <stdio.h> | 20 | #include <stdio.h> |
| 21 | 21 | ||
| 22 | #include "config.h" | 22 | #include "config.h" |
| 23 | #include "lisp.h" | ||
| 24 | #include "frame.h" | ||
| 23 | 25 | ||
| 24 | #ifdef MULTI_FRAME | 26 | #ifdef MULTI_FRAME |
| 25 | 27 | ||
| 26 | #include "lisp.h" | ||
| 27 | #include "frame.h" | ||
| 28 | #include "window.h" | 28 | #include "window.h" |
| 29 | #include "termhooks.h" | 29 | #include "termhooks.h" |
| 30 | 30 | ||
| @@ -153,10 +153,10 @@ make_frame (mini_p) | |||
| 153 | 153 | ||
| 154 | f->param_alist = Qnil; | 154 | f->param_alist = Qnil; |
| 155 | 155 | ||
| 156 | root_window = make_window (0); | 156 | root_window = make_window (); |
| 157 | if (mini_p) | 157 | if (mini_p) |
| 158 | { | 158 | { |
| 159 | mini_window = make_window (0); | 159 | mini_window = make_window (); |
| 160 | XWINDOW (root_window)->next = mini_window; | 160 | XWINDOW (root_window)->next = mini_window; |
| 161 | XWINDOW (mini_window)->prev = root_window; | 161 | XWINDOW (mini_window)->prev = root_window; |
| 162 | XWINDOW (mini_window)->mini_p = Qt; | 162 | XWINDOW (mini_window)->mini_p = Qt; |
| @@ -1327,8 +1327,20 @@ For values specific to the separate minibuffer frame, see\n\ | |||
| 1327 | 1327 | ||
| 1328 | #else /* not MULTI_SCREEN */ | 1328 | #else /* not MULTI_SCREEN */ |
| 1329 | 1329 | ||
| 1330 | /* If we're not using multi-frame stuff, we still need to provide | 1330 | /* If we're not using multi-frame stuff, we still need to provide some |
| 1331 | some support functions. These were present in Emacs 18. */ | 1331 | support functions. */ |
| 1332 | |||
| 1333 | /* Unless this function is defined, providing set-frame-height and | ||
| 1334 | set-frame-width doesn't help compatibility any, since they both | ||
| 1335 | want this as their first argument. */ | ||
| 1336 | DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, | ||
| 1337 | "Return the frame that is now selected.") | ||
| 1338 | () | ||
| 1339 | { | ||
| 1340 | Lisp_Object tem; | ||
| 1341 | XFASTINT (tem) = 0; | ||
| 1342 | return tem; | ||
| 1343 | } | ||
| 1332 | 1344 | ||
| 1333 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, | 1345 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, |
| 1334 | "Specify that the frame FRAME has LINES lines.\n\ | 1346 | "Specify that the frame FRAME has LINES lines.\n\ |
| @@ -1369,6 +1381,22 @@ DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, | |||
| 1369 | return Qnil; | 1381 | return Qnil; |
| 1370 | } | 1382 | } |
| 1371 | 1383 | ||
| 1384 | DEFUN ("frame-height", Fframe_height, Sframe_height, 0, 0, 0, | ||
| 1385 | "Return number of lines available for display on selected frame.") | ||
| 1386 | () | ||
| 1387 | { | ||
| 1388 | return make_number (FRAME_HEIGHT (selected_frame)); | ||
| 1389 | } | ||
| 1390 | |||
| 1391 | DEFUN ("frame-width", Fframe_width, Sframe_width, 0, 0, 0, | ||
| 1392 | "Return number of columns available for display on selected frame.") | ||
| 1393 | () | ||
| 1394 | { | ||
| 1395 | return make_number (FRAME_WIDTH (selected_frame)); | ||
| 1396 | } | ||
| 1397 | |||
| 1398 | /* These are for backward compatibility with Emacs 18. */ | ||
| 1399 | |||
| 1372 | DEFUN ("set-screen-height", Fset_screen_height, Sset_screen_height, 1, 2, 0, | 1400 | DEFUN ("set-screen-height", Fset_screen_height, Sset_screen_height, 1, 2, 0, |
| 1373 | "Tell redisplay that the screen has LINES lines.\n\ | 1401 | "Tell redisplay that the screen has LINES lines.\n\ |
| 1374 | Optional second arg non-nil means that redisplay should use LINES lines\n\ | 1402 | Optional second arg non-nil means that redisplay should use LINES lines\n\ |
| @@ -1395,20 +1423,6 @@ but that the idea of the actual width of the screen should not be changed.") | |||
| 1395 | return Qnil; | 1423 | return Qnil; |
| 1396 | } | 1424 | } |
| 1397 | 1425 | ||
| 1398 | DEFUN ("frame-height", Fframe_height, Sframe_height, 0, 0, 0, | ||
| 1399 | "Return number of lines available for display on selected frame.") | ||
| 1400 | () | ||
| 1401 | { | ||
| 1402 | return make_number (FRAME_HEIGHT (selected_frame)); | ||
| 1403 | } | ||
| 1404 | |||
| 1405 | DEFUN ("frame-width", Fframe_width, Sframe_width, 0, 0, 0, | ||
| 1406 | "Return number of columns available for display on selected frame.") | ||
| 1407 | () | ||
| 1408 | { | ||
| 1409 | return make_number (FRAME_WIDTH (selected_frame)); | ||
| 1410 | } | ||
| 1411 | |||
| 1412 | syms_of_frame () | 1426 | syms_of_frame () |
| 1413 | { | 1427 | { |
| 1414 | defsubr (&Sset_frame_height); | 1428 | defsubr (&Sset_frame_height); |