diff options
| author | Miles Bader | 2007-12-06 09:51:45 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-12-06 09:51:45 +0000 |
| commit | 0bd508417142ff377f34aec8dcec9438d9175c2c (patch) | |
| tree | 4d60fe09e5cebf7d79766b11e9cda8cc1c9dbb9b /src/macfns.c | |
| parent | 98fe991da804a42f53f6a5e84cd5eab18a82e181 (diff) | |
| parent | 9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff) | |
| download | emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.tar.gz emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.zip | |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/src/macfns.c b/src/macfns.c index 2b8c24db3b3..1b2c2d5702a 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -2513,7 +2513,7 @@ unwind_create_frame (frame) | |||
| 2513 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | 2513 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, |
| 2514 | 1, 1, 0, | 2514 | 1, 1, 0, |
| 2515 | doc: /* Make a new window, which is called a "frame" in Emacs terms. | 2515 | doc: /* Make a new window, which is called a "frame" in Emacs terms. |
| 2516 | Returns an Emacs frame object. | 2516 | Return an Emacs frame object. |
| 2517 | PARAMETERS is an alist of frame parameters. | 2517 | PARAMETERS is an alist of frame parameters. |
| 2518 | If the parameters specify that the frame should not have a minibuffer, | 2518 | If the parameters specify that the frame should not have a minibuffer, |
| 2519 | and do not specify a specific minibuffer window to use, | 2519 | and do not specify a specific minibuffer window to use, |
| @@ -2547,11 +2547,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2547 | if (EQ (display, Qunbound)) | 2547 | if (EQ (display, Qunbound)) |
| 2548 | display = Qnil; | 2548 | display = Qnil; |
| 2549 | dpyinfo = check_x_display_info (display); | 2549 | dpyinfo = check_x_display_info (display); |
| 2550 | #ifdef MULTI_KBOARD | ||
| 2551 | kb = dpyinfo->terminal->kboard; | 2550 | kb = dpyinfo->terminal->kboard; |
| 2552 | #else | ||
| 2553 | kb = &the_only_kboard; | ||
| 2554 | #endif | ||
| 2555 | 2551 | ||
| 2556 | name = mac_get_arg (parameters, Qname, "name", "Name", RES_TYPE_STRING); | 2552 | name = mac_get_arg (parameters, Qname, "name", "Name", RES_TYPE_STRING); |
| 2557 | if (!STRINGP (name) | 2553 | if (!STRINGP (name) |
| @@ -2615,9 +2611,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2615 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; | 2611 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; |
| 2616 | dpyinfo_refcount = dpyinfo->reference_count; | 2612 | dpyinfo_refcount = dpyinfo->reference_count; |
| 2617 | #endif /* GLYPH_DEBUG */ | 2613 | #endif /* GLYPH_DEBUG */ |
| 2618 | #ifdef MULTI_KBOARD | ||
| 2619 | FRAME_KBOARD (f) = kb; | 2614 | FRAME_KBOARD (f) = kb; |
| 2620 | #endif | ||
| 2621 | 2615 | ||
| 2622 | /* Specify the parent under which to make this window. */ | 2616 | /* Specify the parent under which to make this window. */ |
| 2623 | 2617 | ||
| @@ -2975,7 +2969,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2975 | 2969 | ||
| 2976 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, | 2970 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, |
| 2977 | 0, 1, 0, | 2971 | 0, 1, 0, |
| 2978 | doc: /* Returns the width in pixels of DISPLAY. | 2972 | doc: /* Return the width in pixels of DISPLAY. |
| 2979 | The optional argument DISPLAY specifies which display to ask about. | 2973 | The optional argument DISPLAY specifies which display to ask about. |
| 2980 | DISPLAY should be either a frame or a display name (a string). | 2974 | DISPLAY should be either a frame or a display name (a string). |
| 2981 | If omitted or nil, that stands for the selected frame's display. */) | 2975 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -2989,7 +2983,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2989 | 2983 | ||
| 2990 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, | 2984 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, |
| 2991 | Sx_display_pixel_height, 0, 1, 0, | 2985 | Sx_display_pixel_height, 0, 1, 0, |
| 2992 | doc: /* Returns the height in pixels of DISPLAY. | 2986 | doc: /* Return the height in pixels of DISPLAY. |
| 2993 | The optional argument DISPLAY specifies which display to ask about. | 2987 | The optional argument DISPLAY specifies which display to ask about. |
| 2994 | DISPLAY should be either a frame or a display name (a string). | 2988 | DISPLAY should be either a frame or a display name (a string). |
| 2995 | If omitted or nil, that stands for the selected frame's display. */) | 2989 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3003,7 +2997,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3003 | 2997 | ||
| 3004 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, | 2998 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, |
| 3005 | 0, 1, 0, | 2999 | 0, 1, 0, |
| 3006 | doc: /* Returns the number of bitplanes of DISPLAY. | 3000 | doc: /* Return the number of bitplanes of DISPLAY. |
| 3007 | The optional argument DISPLAY specifies which display to ask about. | 3001 | The optional argument DISPLAY specifies which display to ask about. |
| 3008 | DISPLAY should be either a frame or a display name (a string). | 3002 | DISPLAY should be either a frame or a display name (a string). |
| 3009 | If omitted or nil, that stands for the selected frame's display. */) | 3003 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3017,7 +3011,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3017 | 3011 | ||
| 3018 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, | 3012 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, |
| 3019 | 0, 1, 0, | 3013 | 0, 1, 0, |
| 3020 | doc: /* Returns the number of color cells of DISPLAY. | 3014 | doc: /* Return the number of color cells of DISPLAY. |
| 3021 | The optional argument DISPLAY specifies which display to ask about. | 3015 | The optional argument DISPLAY specifies which display to ask about. |
| 3022 | DISPLAY should be either a frame or a display name (a string). | 3016 | DISPLAY should be either a frame or a display name (a string). |
| 3023 | If omitted or nil, that stands for the selected frame's display. */) | 3017 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3033,7 +3027,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3033 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, | 3027 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, |
| 3034 | Sx_server_max_request_size, | 3028 | Sx_server_max_request_size, |
| 3035 | 0, 1, 0, | 3029 | 0, 1, 0, |
| 3036 | doc: /* Returns the maximum request size of the server of DISPLAY. | 3030 | doc: /* Return the maximum request size of the server of DISPLAY. |
| 3037 | The optional argument DISPLAY specifies which display to ask about. | 3031 | The optional argument DISPLAY specifies which display to ask about. |
| 3038 | DISPLAY should be either a frame or a display name (a string). | 3032 | DISPLAY should be either a frame or a display name (a string). |
| 3039 | If omitted or nil, that stands for the selected frame's display. */) | 3033 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3046,7 +3040,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3046 | } | 3040 | } |
| 3047 | 3041 | ||
| 3048 | DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, | 3042 | DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, |
| 3049 | doc: /* Returns the "vendor ID" string of the Mac OS system (Apple). | 3043 | doc: /* Return the "vendor ID" string of the Mac OS system (Apple). |
| 3050 | The optional argument DISPLAY specifies which display to ask about. | 3044 | The optional argument DISPLAY specifies which display to ask about. |
| 3051 | DISPLAY should be either a frame or a display name (a string). | 3045 | DISPLAY should be either a frame or a display name (a string). |
| 3052 | If omitted or nil, that stands for the selected frame's display. */) | 3046 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3057,7 +3051,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3057 | } | 3051 | } |
| 3058 | 3052 | ||
| 3059 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, | 3053 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, |
| 3060 | doc: /* Returns the version numbers of the Mac OS system. | 3054 | doc: /* Return the version numbers of the Mac OS system. |
| 3061 | The value is a list of three integers: the major and minor | 3055 | The value is a list of three integers: the major and minor |
| 3062 | version numbers, and the vendor-specific release | 3056 | version numbers, and the vendor-specific release |
| 3063 | number. See also the function `x-server-vendor'. | 3057 | number. See also the function `x-server-vendor'. |
| @@ -3191,7 +3185,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3191 | 3185 | ||
| 3192 | DEFUN ("x-display-backing-store", Fx_display_backing_store, | 3186 | DEFUN ("x-display-backing-store", Fx_display_backing_store, |
| 3193 | Sx_display_backing_store, 0, 1, 0, | 3187 | Sx_display_backing_store, 0, 1, 0, |
| 3194 | doc: /* Returns an indication of whether DISPLAY does backing store. | 3188 | doc: /* Return an indication of whether DISPLAY does backing store. |
| 3195 | The value may be `always', `when-mapped', or `not-useful'. | 3189 | The value may be `always', `when-mapped', or `not-useful'. |
| 3196 | The optional argument DISPLAY specifies which display to ask about. | 3190 | The optional argument DISPLAY specifies which display to ask about. |
| 3197 | DISPLAY should be either a frame or a display name (a string). | 3191 | DISPLAY should be either a frame or a display name (a string). |
| @@ -3204,7 +3198,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3204 | 3198 | ||
| 3205 | DEFUN ("x-display-visual-class", Fx_display_visual_class, | 3199 | DEFUN ("x-display-visual-class", Fx_display_visual_class, |
| 3206 | Sx_display_visual_class, 0, 1, 0, | 3200 | Sx_display_visual_class, 0, 1, 0, |
| 3207 | doc: /* Returns the visual class of DISPLAY. | 3201 | doc: /* Return the visual class of DISPLAY. |
| 3208 | The value is one of the symbols `static-gray', `gray-scale', | 3202 | The value is one of the symbols `static-gray', `gray-scale', |
| 3209 | `static-color', `pseudo-color', `true-color', or `direct-color'. | 3203 | `static-color', `pseudo-color', `true-color', or `direct-color'. |
| 3210 | 3204 | ||
| @@ -3235,7 +3229,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3235 | 3229 | ||
| 3236 | DEFUN ("x-display-save-under", Fx_display_save_under, | 3230 | DEFUN ("x-display-save-under", Fx_display_save_under, |
| 3237 | Sx_display_save_under, 0, 1, 0, | 3231 | Sx_display_save_under, 0, 1, 0, |
| 3238 | doc: /* Returns t if DISPLAY supports the save-under feature. | 3232 | doc: /* Return t if DISPLAY supports the save-under feature. |
| 3239 | The optional argument DISPLAY specifies which display to ask about. | 3233 | The optional argument DISPLAY specifies which display to ask about. |
| 3240 | DISPLAY should be either a frame or a display name (a string). | 3234 | DISPLAY should be either a frame or a display name (a string). |
| 3241 | If omitted or nil, that stands for the selected frame's display. */) | 3235 | If omitted or nil, that stands for the selected frame's display. */) |
| @@ -3809,11 +3803,7 @@ x_create_tip_frame (dpyinfo, parms, text) | |||
| 3809 | 3803 | ||
| 3810 | parms = Fcopy_alist (parms); | 3804 | parms = Fcopy_alist (parms); |
| 3811 | 3805 | ||
| 3812 | #ifdef MULTI_KBOARD | ||
| 3813 | kb = dpyinfo->terminal->kboard; | 3806 | kb = dpyinfo->terminal->kboard; |
| 3814 | #else | ||
| 3815 | kb = &the_only_kboard; | ||
| 3816 | #endif | ||
| 3817 | 3807 | ||
| 3818 | /* Get the name of the frame to use for resource lookup. */ | 3808 | /* Get the name of the frame to use for resource lookup. */ |
| 3819 | name = mac_get_arg (parms, Qname, "name", "Name", RES_TYPE_STRING); | 3809 | name = mac_get_arg (parms, Qname, "name", "Name", RES_TYPE_STRING); |
| @@ -3859,9 +3849,7 @@ x_create_tip_frame (dpyinfo, parms, text) | |||
| 3859 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; | 3849 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; |
| 3860 | dpyinfo_refcount = dpyinfo->reference_count; | 3850 | dpyinfo_refcount = dpyinfo->reference_count; |
| 3861 | #endif /* GLYPH_DEBUG */ | 3851 | #endif /* GLYPH_DEBUG */ |
| 3862 | #ifdef MULTI_KBOARD | ||
| 3863 | FRAME_KBOARD (f) = kb; | 3852 | FRAME_KBOARD (f) = kb; |
| 3864 | #endif | ||
| 3865 | f->output_data.mac->parent_desc = FRAME_MAC_DISPLAY_INFO (f)->root_window; | 3853 | f->output_data.mac->parent_desc = FRAME_MAC_DISPLAY_INFO (f)->root_window; |
| 3866 | f->output_data.mac->explicit_parent = 0; | 3854 | f->output_data.mac->explicit_parent = 0; |
| 3867 | 3855 | ||