aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c
diff options
context:
space:
mode:
authorMiles Bader2007-12-06 09:51:45 +0000
committerMiles Bader2007-12-06 09:51:45 +0000
commit0bd508417142ff377f34aec8dcec9438d9175c2c (patch)
tree4d60fe09e5cebf7d79766b11e9cda8cc1c9dbb9b /src/macfns.c
parent98fe991da804a42f53f6a5e84cd5eab18a82e181 (diff)
parent9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff)
downloademacs-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.c34
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)
2513DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 2513DEFUN ("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.
2516Returns an Emacs frame object. 2516Return an Emacs frame object.
2517PARAMETERS is an alist of frame parameters. 2517PARAMETERS is an alist of frame parameters.
2518If the parameters specify that the frame should not have a minibuffer, 2518If the parameters specify that the frame should not have a minibuffer,
2519and do not specify a specific minibuffer window to use, 2519and 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
2976DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, 2970DEFUN ("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.
2979The optional argument DISPLAY specifies which display to ask about. 2973The optional argument DISPLAY specifies which display to ask about.
2980DISPLAY should be either a frame or a display name (a string). 2974DISPLAY should be either a frame or a display name (a string).
2981If omitted or nil, that stands for the selected frame's display. */) 2975If 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
2990DEFUN ("x-display-pixel-height", Fx_display_pixel_height, 2984DEFUN ("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.
2993The optional argument DISPLAY specifies which display to ask about. 2987The optional argument DISPLAY specifies which display to ask about.
2994DISPLAY should be either a frame or a display name (a string). 2988DISPLAY should be either a frame or a display name (a string).
2995If omitted or nil, that stands for the selected frame's display. */) 2989If 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
3004DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 2998DEFUN ("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.
3007The optional argument DISPLAY specifies which display to ask about. 3001The optional argument DISPLAY specifies which display to ask about.
3008DISPLAY should be either a frame or a display name (a string). 3002DISPLAY should be either a frame or a display name (a string).
3009If omitted or nil, that stands for the selected frame's display. */) 3003If 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
3018DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, 3012DEFUN ("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.
3021The optional argument DISPLAY specifies which display to ask about. 3015The optional argument DISPLAY specifies which display to ask about.
3022DISPLAY should be either a frame or a display name (a string). 3016DISPLAY should be either a frame or a display name (a string).
3023If omitted or nil, that stands for the selected frame's display. */) 3017If 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. */)
3033DEFUN ("x-server-max-request-size", Fx_server_max_request_size, 3027DEFUN ("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.
3037The optional argument DISPLAY specifies which display to ask about. 3031The optional argument DISPLAY specifies which display to ask about.
3038DISPLAY should be either a frame or a display name (a string). 3032DISPLAY should be either a frame or a display name (a string).
3039If omitted or nil, that stands for the selected frame's display. */) 3033If 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
3048DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, 3042DEFUN ("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).
3050The optional argument DISPLAY specifies which display to ask about. 3044The optional argument DISPLAY specifies which display to ask about.
3051DISPLAY should be either a frame or a display name (a string). 3045DISPLAY should be either a frame or a display name (a string).
3052If omitted or nil, that stands for the selected frame's display. */) 3046If 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
3059DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, 3053DEFUN ("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.
3061The value is a list of three integers: the major and minor 3055The value is a list of three integers: the major and minor
3062version numbers, and the vendor-specific release 3056version numbers, and the vendor-specific release
3063number. See also the function `x-server-vendor'. 3057number. 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
3192DEFUN ("x-display-backing-store", Fx_display_backing_store, 3186DEFUN ("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.
3195The value may be `always', `when-mapped', or `not-useful'. 3189The value may be `always', `when-mapped', or `not-useful'.
3196The optional argument DISPLAY specifies which display to ask about. 3190The optional argument DISPLAY specifies which display to ask about.
3197DISPLAY should be either a frame or a display name (a string). 3191DISPLAY 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
3205DEFUN ("x-display-visual-class", Fx_display_visual_class, 3199DEFUN ("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.
3208The value is one of the symbols `static-gray', `gray-scale', 3202The 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
3236DEFUN ("x-display-save-under", Fx_display_save_under, 3230DEFUN ("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.
3239The optional argument DISPLAY specifies which display to ask about. 3233The optional argument DISPLAY specifies which display to ask about.
3240DISPLAY should be either a frame or a display name (a string). 3234DISPLAY should be either a frame or a display name (a string).
3241If omitted or nil, that stands for the selected frame's display. */) 3235If 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