comparison src/macfns.c @ 79394:ab33c298053b

(Fx_create_frame, Fx_display_pixel_width, Fx_display_pixel_height, Fx_display_planes, Fx_display_color_cells, Fx_server_max_request_size, Fx_server_vendor, Fx_server_version, Fx_display_backing_store, Fx_display_visual_class, Fx_display_save_under): Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 15 Nov 2007 09:36:34 +0000
parents b264e9730021
children fc2bcd2a8aad
comparison
equal deleted inserted replaced
79393:09f6c4242048 79394:ab33c298053b
2486 2486
2487 2487
2488 DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 2488 DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame,
2489 1, 1, 0, 2489 1, 1, 0,
2490 doc: /* Make a new window, which is called a "frame" in Emacs terms. 2490 doc: /* Make a new window, which is called a "frame" in Emacs terms.
2491 Returns an Emacs frame object. 2491 Return an Emacs frame object.
2492 ALIST is an alist of frame parameters. 2492 ALIST is an alist of frame parameters.
2493 If the parameters specify that the frame should not have a minibuffer, 2493 If the parameters specify that the frame should not have a minibuffer,
2494 and do not specify a specific minibuffer window to use, 2494 and do not specify a specific minibuffer window to use,
2495 then `default-minibuffer-frame' must be a frame whose minibuffer can 2495 then `default-minibuffer-frame' must be a frame whose minibuffer can
2496 be shared by the new frame. 2496 be shared by the new frame.
2946 return Qt; 2946 return Qt;
2947 } 2947 }
2948 2948
2949 DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, 2949 DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width,
2950 0, 1, 0, 2950 0, 1, 0,
2951 doc: /* Returns the width in pixels of DISPLAY. 2951 doc: /* Return the width in pixels of DISPLAY.
2952 The optional argument DISPLAY specifies which display to ask about. 2952 The optional argument DISPLAY specifies which display to ask about.
2953 DISPLAY should be either a frame or a display name (a string). 2953 DISPLAY should be either a frame or a display name (a string).
2954 If omitted or nil, that stands for the selected frame's display. */) 2954 If omitted or nil, that stands for the selected frame's display. */)
2955 (display) 2955 (display)
2956 Lisp_Object display; 2956 Lisp_Object display;
2960 return make_number (dpyinfo->width); 2960 return make_number (dpyinfo->width);
2961 } 2961 }
2962 2962
2963 DEFUN ("x-display-pixel-height", Fx_display_pixel_height, 2963 DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
2964 Sx_display_pixel_height, 0, 1, 0, 2964 Sx_display_pixel_height, 0, 1, 0,
2965 doc: /* Returns the height in pixels of DISPLAY. 2965 doc: /* Return the height in pixels of DISPLAY.
2966 The optional argument DISPLAY specifies which display to ask about. 2966 The optional argument DISPLAY specifies which display to ask about.
2967 DISPLAY should be either a frame or a display name (a string). 2967 DISPLAY should be either a frame or a display name (a string).
2968 If omitted or nil, that stands for the selected frame's display. */) 2968 If omitted or nil, that stands for the selected frame's display. */)
2969 (display) 2969 (display)
2970 Lisp_Object display; 2970 Lisp_Object display;
2974 return make_number (dpyinfo->height); 2974 return make_number (dpyinfo->height);
2975 } 2975 }
2976 2976
2977 DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 2977 DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
2978 0, 1, 0, 2978 0, 1, 0,
2979 doc: /* Returns the number of bitplanes of DISPLAY. 2979 doc: /* Return the number of bitplanes of DISPLAY.
2980 The optional argument DISPLAY specifies which display to ask about. 2980 The optional argument DISPLAY specifies which display to ask about.
2981 DISPLAY should be either a frame or a display name (a string). 2981 DISPLAY should be either a frame or a display name (a string).
2982 If omitted or nil, that stands for the selected frame's display. */) 2982 If omitted or nil, that stands for the selected frame's display. */)
2983 (display) 2983 (display)
2984 Lisp_Object display; 2984 Lisp_Object display;
2988 return make_number (dpyinfo->n_planes); 2988 return make_number (dpyinfo->n_planes);
2989 } 2989 }
2990 2990
2991 DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, 2991 DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells,
2992 0, 1, 0, 2992 0, 1, 0,
2993 doc: /* Returns the number of color cells of DISPLAY. 2993 doc: /* Return the number of color cells of DISPLAY.
2994 The optional argument DISPLAY specifies which display to ask about. 2994 The optional argument DISPLAY specifies which display to ask about.
2995 DISPLAY should be either a frame or a display name (a string). 2995 DISPLAY should be either a frame or a display name (a string).
2996 If omitted or nil, that stands for the selected frame's display. */) 2996 If omitted or nil, that stands for the selected frame's display. */)
2997 (display) 2997 (display)
2998 Lisp_Object display; 2998 Lisp_Object display;
3004 } 3004 }
3005 3005
3006 DEFUN ("x-server-max-request-size", Fx_server_max_request_size, 3006 DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
3007 Sx_server_max_request_size, 3007 Sx_server_max_request_size,
3008 0, 1, 0, 3008 0, 1, 0,
3009 doc: /* Returns the maximum request size of the server of DISPLAY. 3009 doc: /* Return the maximum request size of the server of DISPLAY.
3010 The optional argument DISPLAY specifies which display to ask about. 3010 The optional argument DISPLAY specifies which display to ask about.
3011 DISPLAY should be either a frame or a display name (a string). 3011 DISPLAY should be either a frame or a display name (a string).
3012 If omitted or nil, that stands for the selected frame's display. */) 3012 If omitted or nil, that stands for the selected frame's display. */)
3013 (display) 3013 (display)
3014 Lisp_Object display; 3014 Lisp_Object display;
3017 3017
3018 return make_number (1); 3018 return make_number (1);
3019 } 3019 }
3020 3020
3021 DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, 3021 DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0,
3022 doc: /* Returns the "vendor ID" string of the Mac OS system (Apple). 3022 doc: /* Return the "vendor ID" string of the Mac OS system (Apple).
3023 The optional argument DISPLAY specifies which display to ask about. 3023 The optional argument DISPLAY specifies which display to ask about.
3024 DISPLAY should be either a frame or a display name (a string). 3024 DISPLAY should be either a frame or a display name (a string).
3025 If omitted or nil, that stands for the selected frame's display. */) 3025 If omitted or nil, that stands for the selected frame's display. */)
3026 (display) 3026 (display)
3027 Lisp_Object display; 3027 Lisp_Object display;
3028 { 3028 {
3029 return build_string ("Apple Inc."); 3029 return build_string ("Apple Inc.");
3030 } 3030 }
3031 3031
3032 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, 3032 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0,
3033 doc: /* Returns the version numbers of the Mac OS system. 3033 doc: /* Return the version numbers of the Mac OS system.
3034 The value is a list of three integers: the major and minor 3034 The value is a list of three integers: the major and minor
3035 version numbers, and the vendor-specific release 3035 version numbers, and the vendor-specific release
3036 number. See also the function `x-server-vendor'. 3036 number. See also the function `x-server-vendor'.
3037 3037
3038 The optional argument DISPLAY specifies which display to ask about. 3038 The optional argument DISPLAY specifies which display to ask about.
3162 return make_number ((int) (dpyinfo->width * mm_per_pixel + 0.5f)); 3162 return make_number ((int) (dpyinfo->width * mm_per_pixel + 0.5f));
3163 } 3163 }
3164 3164
3165 DEFUN ("x-display-backing-store", Fx_display_backing_store, 3165 DEFUN ("x-display-backing-store", Fx_display_backing_store,
3166 Sx_display_backing_store, 0, 1, 0, 3166 Sx_display_backing_store, 0, 1, 0,
3167 doc: /* Returns an indication of whether DISPLAY does backing store. 3167 doc: /* Return an indication of whether DISPLAY does backing store.
3168 The value may be `always', `when-mapped', or `not-useful'. 3168 The value may be `always', `when-mapped', or `not-useful'.
3169 The optional argument DISPLAY specifies which display to ask about. 3169 The optional argument DISPLAY specifies which display to ask about.
3170 DISPLAY should be either a frame or a display name (a string). 3170 DISPLAY should be either a frame or a display name (a string).
3171 If omitted or nil, that stands for the selected frame's display. */) 3171 If omitted or nil, that stands for the selected frame's display. */)
3172 (display) 3172 (display)
3175 return intern ("not-useful"); 3175 return intern ("not-useful");
3176 } 3176 }
3177 3177
3178 DEFUN ("x-display-visual-class", Fx_display_visual_class, 3178 DEFUN ("x-display-visual-class", Fx_display_visual_class,
3179 Sx_display_visual_class, 0, 1, 0, 3179 Sx_display_visual_class, 0, 1, 0,
3180 doc: /* Returns the visual class of DISPLAY. 3180 doc: /* Return the visual class of DISPLAY.
3181 The value is one of the symbols `static-gray', `gray-scale', 3181 The value is one of the symbols `static-gray', `gray-scale',
3182 `static-color', `pseudo-color', `true-color', or `direct-color'. 3182 `static-color', `pseudo-color', `true-color', or `direct-color'.
3183 3183
3184 The optional argument DISPLAY specifies which display to ask about. 3184 The optional argument DISPLAY specifies which display to ask about.
3185 DISPLAY should be either a frame or a display name (a string). 3185 DISPLAY should be either a frame or a display name (a string).
3206 return (intern ("true-color")); 3206 return (intern ("true-color"));
3207 } 3207 }
3208 3208
3209 DEFUN ("x-display-save-under", Fx_display_save_under, 3209 DEFUN ("x-display-save-under", Fx_display_save_under,
3210 Sx_display_save_under, 0, 1, 0, 3210 Sx_display_save_under, 0, 1, 0,
3211 doc: /* Returns t if DISPLAY supports the save-under feature. 3211 doc: /* Return t if DISPLAY supports the save-under feature.
3212 The optional argument DISPLAY specifies which display to ask about. 3212 The optional argument DISPLAY specifies which display to ask about.
3213 DISPLAY should be either a frame or a display name (a string). 3213 DISPLAY should be either a frame or a display name (a string).
3214 If omitted or nil, that stands for the selected frame's display. */) 3214 If omitted or nil, that stands for the selected frame's display. */)
3215 (display) 3215 (display)
3216 Lisp_Object display; 3216 Lisp_Object display;