diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 8482d1b3d14..57ffeda04b2 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | |||
| 1 | /* Generic frame functions. | 2 | /* Generic frame functions. |
| 2 | Copyright (C) 1989, 1992 Free Software Foundation. | 3 | Copyright (C) 1989, 1992 Free Software Foundation. |
| 3 | 4 | ||
| @@ -884,7 +885,8 @@ store_frame_param (f, prop, val) | |||
| 884 | DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0, | 885 | DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0, |
| 885 | "Return the parameters-alist of frame FRAME.\n\ | 886 | "Return the parameters-alist of frame FRAME.\n\ |
| 886 | It is a list of elements of the form (PARM . VALUE), where PARM is a symbol.\n\ | 887 | It is a list of elements of the form (PARM . VALUE), where PARM is a symbol.\n\ |
| 887 | The meaningful PARMs depend on the kind of frame.") | 888 | The meaningful PARMs depend on the kind of frame.\n\ |
| 889 | If FRAME is omitted, return information on the currently selected frame.") | ||
| 888 | (frame) | 890 | (frame) |
| 889 | Lisp_Object frame; | 891 | Lisp_Object frame; |
| 890 | { | 892 | { |
| @@ -953,6 +955,11 @@ The meaningful PARMs depend on the kind of frame; undefined PARMs are ignored.") | |||
| 953 | } | 955 | } |
| 954 | 956 | ||
| 955 | 957 | ||
| 958 | #if 0 | ||
| 959 | /* This function isn't useful enough by itself to include; we need to | ||
| 960 | add functions to allow the user to find the size of a font before | ||
| 961 | this is actually useful. */ | ||
| 962 | |||
| 956 | DEFUN ("frame-pixel-size", Fframe_pixel_size, | 963 | DEFUN ("frame-pixel-size", Fframe_pixel_size, |
| 957 | Sframe_pixel_size, 1, 1, 0, | 964 | Sframe_pixel_size, 1, 1, 0, |
| 958 | "Return a cons (width . height) of FRAME's size in pixels.") | 965 | "Return a cons (width . height) of FRAME's size in pixels.") |
| @@ -968,6 +975,10 @@ DEFUN ("frame-pixel-size", Fframe_pixel_size, | |||
| 968 | return Fcons (make_number (x_pixel_width (f)), | 975 | return Fcons (make_number (x_pixel_width (f)), |
| 969 | make_number (x_pixel_height (f))); | 976 | make_number (x_pixel_height (f))); |
| 970 | } | 977 | } |
| 978 | #endif | ||
| 979 | |||
| 980 | #if 0 | ||
| 981 | /* These functions have no C callers, and can be written nicely in lisp. */ | ||
| 971 | 982 | ||
| 972 | DEFUN ("frame-height", Fframe_height, Sframe_height, 0, 0, 0, | 983 | DEFUN ("frame-height", Fframe_height, Sframe_height, 0, 0, 0, |
| 973 | "Return number of lines available for display on selected frame.") | 984 | "Return number of lines available for display on selected frame.") |
| @@ -982,6 +993,7 @@ DEFUN ("frame-width", Fframe_width, Sframe_width, 0, 0, 0, | |||
| 982 | { | 993 | { |
| 983 | return make_number (FRAME_WIDTH (selected_frame)); | 994 | return make_number (FRAME_WIDTH (selected_frame)); |
| 984 | } | 995 | } |
| 996 | #endif | ||
| 985 | 997 | ||
| 986 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, | 998 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, |
| 987 | "Specify that the frame FRAME has LINES lines.\n\ | 999 | "Specify that the frame FRAME has LINES lines.\n\ |
| @@ -1084,6 +1096,7 @@ off the frame.") | |||
| 1084 | 1096 | ||
| 1085 | return Qt; | 1097 | return Qt; |
| 1086 | } | 1098 | } |
| 1099 | |||
| 1087 | 1100 | ||
| 1088 | #ifndef HAVE_X11 | 1101 | #ifndef HAVE_X11 |
| 1089 | DEFUN ("rubber-band-rectangle", Frubber_band_rectangle, Srubber_band_rectangle, | 1102 | DEFUN ("rubber-band-rectangle", Frubber_band_rectangle, Srubber_band_rectangle, |