diff options
| author | Dan Nicolaescu | 2008-07-22 17:43:36 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-22 17:43:36 +0000 |
| commit | 952913d45d433eab0dd2879e80d637e879eb6d4e (patch) | |
| tree | 09a5a7b68d5543d8cdaeec900e4afc2b86a12aed /src | |
| parent | e87c4c6e9a3844c7e9490b617e5c6b33036e9eda (diff) | |
| download | emacs-952913d45d433eab0dd2879e80d637e879eb6d4e.tar.gz emacs-952913d45d433eab0dd2879e80d637e879eb6d4e.zip | |
Rename ns prefixed functions/variables to the
corresponding x versions. Update references.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsfns.m | 42 |
2 files changed, 26 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 33c1dc55aab..804a71f6c5d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * nsfns.m: Rename ns prefixed functions/variables to the | ||
| 4 | corresponding x versions. Update references. | ||
| 5 | |||
| 1 | 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * syntax.c (char_quoted): Check "charpos > beg" before decrementing. | 8 | * syntax.c (char_quoted): Check "charpos > beg" before decrementing. |
diff --git a/src/nsfns.m b/src/nsfns.m index 4595ea51f17..84bcc36a4cd 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -961,7 +961,7 @@ ns_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 961 | 961 | ||
| 962 | 962 | ||
| 963 | static void | 963 | static void |
| 964 | ns_icon (struct frame *f, Lisp_Object parms) | 964 | x_icon (struct frame *f, Lisp_Object parms) |
| 965 | /* -------------------------------------------------------------------------- | 965 | /* -------------------------------------------------------------------------- |
| 966 | Strangely-named function to set icon position parameters in frame. | 966 | Strangely-named function to set icon position parameters in frame. |
| 967 | This is irrelevant under OS X, but might be needed under GNUstep, | 967 | This is irrelevant under OS X, but might be needed under GNUstep, |
| @@ -1268,7 +1268,7 @@ be shared by the new frame. */) | |||
| 1268 | 1268 | ||
| 1269 | [[EmacsView alloc] initFrameFromEmacs: f]; | 1269 | [[EmacsView alloc] initFrameFromEmacs: f]; |
| 1270 | 1270 | ||
| 1271 | ns_icon (f, parms); | 1271 | x_icon (f, parms); |
| 1272 | 1272 | ||
| 1273 | /* It is now ok to make the frame official even if we get an error below. | 1273 | /* It is now ok to make the frame official even if we get an error below. |
| 1274 | The frame needs to be on Vframe_list or making it visible won't work. */ | 1274 | The frame needs to be on Vframe_list or making it visible won't work. */ |
| @@ -1557,8 +1557,8 @@ transparency and 1 is opaque. */) | |||
| 1557 | } | 1557 | } |
| 1558 | 1558 | ||
| 1559 | 1559 | ||
| 1560 | DEFUN ("ns-server-max-request-size", Fns_server_max_request_size, | 1560 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, |
| 1561 | Sns_server_max_request_size, | 1561 | Sx_server_max_request_size, |
| 1562 | 0, 1, 0, | 1562 | 0, 1, 0, |
| 1563 | doc: /* This function is a no-op. It is only present for completeness. */) | 1563 | doc: /* This function is a no-op. It is only present for completeness. */) |
| 1564 | (display) | 1564 | (display) |
| @@ -1840,7 +1840,7 @@ DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel, | |||
| 1840 | } | 1840 | } |
| 1841 | 1841 | ||
| 1842 | 1842 | ||
| 1843 | DEFUN ("x-list-fonts", Fns_list_fonts, Sns_list_fonts, 1, 4, 0, | 1843 | DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 4, 0, |
| 1844 | doc: /* Return a list of the names of available fonts matching PATTERN. | 1844 | doc: /* Return a list of the names of available fonts matching PATTERN. |
| 1845 | If optional arguments FACE and FRAME are specified, return only fonts | 1845 | If optional arguments FACE and FRAME are specified, return only fonts |
| 1846 | the same size as FACE on FRAME. | 1846 | the same size as FACE on FRAME. |
| @@ -2264,7 +2264,7 @@ t. In case the execution fails, an error is signaled. */) | |||
| 2264 | } | 2264 | } |
| 2265 | #endif | 2265 | #endif |
| 2266 | 2266 | ||
| 2267 | DEFUN ("xw-color-defined-p", Fns_color_defined_p, Sns_color_defined_p, 1, 2, 0, | 2267 | DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, |
| 2268 | doc: /* Return t if the current Nextstep display supports the color COLOR. | 2268 | doc: /* Return t if the current Nextstep display supports the color COLOR. |
| 2269 | The optional argument FRAME is currently ignored. */) | 2269 | The optional argument FRAME is currently ignored. */) |
| 2270 | (color, frame) | 2270 | (color, frame) |
| @@ -2276,7 +2276,7 @@ The optional argument FRAME is currently ignored. */) | |||
| 2276 | } | 2276 | } |
| 2277 | 2277 | ||
| 2278 | 2278 | ||
| 2279 | DEFUN ("xw-color-values", Fns_color_values, Sns_color_values, 1, 2, 0, | 2279 | DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, |
| 2280 | doc: /* Return a description of the color named COLOR. | 2280 | doc: /* Return a description of the color named COLOR. |
| 2281 | The value is a list of integer RGBA values--(RED GREEN BLUE ALPHA). | 2281 | The value is a list of integer RGBA values--(RED GREEN BLUE ALPHA). |
| 2282 | These values appear to range from 0 to 65280; white is (65280 65280 65280 0). | 2282 | These values appear to range from 0 to 65280; white is (65280 65280 65280 0). |
| @@ -2343,7 +2343,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2343 | } | 2343 | } |
| 2344 | 2344 | ||
| 2345 | 2345 | ||
| 2346 | DEFUN ("x-display-pixel-width", Fns_display_pixel_width, Sns_display_pixel_width, | 2346 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, |
| 2347 | 0, 1, 0, | 2347 | 0, 1, 0, |
| 2348 | doc: /* Returns the width in pixels of the Nextstep display DISPLAY. | 2348 | doc: /* Returns the width in pixels of the Nextstep display DISPLAY. |
| 2349 | The optional argument DISPLAY specifies which display to ask about. | 2349 | The optional argument DISPLAY specifies which display to ask about. |
| @@ -2357,8 +2357,8 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2357 | } | 2357 | } |
| 2358 | 2358 | ||
| 2359 | 2359 | ||
| 2360 | DEFUN ("x-display-pixel-height", Fns_display_pixel_height, | 2360 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, |
| 2361 | Sns_display_pixel_height, 0, 1, 0, | 2361 | Sx_display_pixel_height, 0, 1, 0, |
| 2362 | doc: /* Returns the height in pixels of the Nextstep display DISPLAY. | 2362 | doc: /* Returns the height in pixels of the Nextstep display DISPLAY. |
| 2363 | The optional argument DISPLAY specifies which display to ask about. | 2363 | The optional argument DISPLAY specifies which display to ask about. |
| 2364 | DISPLAY should be either a frame, a display name (a string), or terminal ID. | 2364 | DISPLAY should be either a frame, a display name (a string), or terminal ID. |
| @@ -2398,7 +2398,7 @@ that stands for the selected frame's display. */) | |||
| 2398 | } | 2398 | } |
| 2399 | 2399 | ||
| 2400 | 2400 | ||
| 2401 | DEFUN ("x-display-planes", Fx_display_planes, Sns_display_planes, | 2401 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, |
| 2402 | 0, 1, 0, | 2402 | 0, 1, 0, |
| 2403 | doc: /* Returns the number of bitplanes of the Nextstep display DISPLAY. | 2403 | doc: /* Returns the number of bitplanes of the Nextstep display DISPLAY. |
| 2404 | The optional argument DISPLAY specifies which display to ask about. | 2404 | The optional argument DISPLAY specifies which display to ask about. |
| @@ -2413,8 +2413,8 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2413 | } | 2413 | } |
| 2414 | 2414 | ||
| 2415 | 2415 | ||
| 2416 | DEFUN ("x-display-color-cells", Fns_display_color_cells, | 2416 | DEFUN ("x-display-color-cells", Fx_display_color_cells, |
| 2417 | Sns_display_color_cells, 0, 1, 0, | 2417 | Sx_display_color_cells, 0, 1, 0, |
| 2418 | doc: /* Returns the number of color cells of the Nextstep display DISPLAY. | 2418 | doc: /* Returns the number of color cells of the Nextstep display DISPLAY. |
| 2419 | The optional argument DISPLAY specifies which display to ask about. | 2419 | The optional argument DISPLAY specifies which display to ask about. |
| 2420 | DISPLAY should be either a frame, a display name (a string), or terminal ID. | 2420 | DISPLAY should be either a frame, a display name (a string), or terminal ID. |
| @@ -2693,25 +2693,25 @@ be used as the image of the icon representing the frame. */); | |||
| 2693 | defsubr (&Sns_set_resource); | 2693 | defsubr (&Sns_set_resource); |
| 2694 | defsubr (&Sxw_display_color_p); /* this and next called directly by C code */ | 2694 | defsubr (&Sxw_display_color_p); /* this and next called directly by C code */ |
| 2695 | defsubr (&Sx_display_grayscale_p); | 2695 | defsubr (&Sx_display_grayscale_p); |
| 2696 | defsubr (&Sns_list_fonts); | 2696 | defsubr (&Sx_list_fonts); |
| 2697 | defsubr (&Sns_font_name); | 2697 | defsubr (&Sns_font_name); |
| 2698 | defsubr (&Sns_list_colors); | 2698 | defsubr (&Sns_list_colors); |
| 2699 | #ifdef NS_IMPL_COCOA | 2699 | #ifdef NS_IMPL_COCOA |
| 2700 | defsubr (&Sdo_applescript); | 2700 | defsubr (&Sdo_applescript); |
| 2701 | #endif | 2701 | #endif |
| 2702 | defsubr (&Sns_color_defined_p); | 2702 | defsubr (&Sxw_color_defined_p); |
| 2703 | defsubr (&Sns_color_values); | 2703 | defsubr (&Sxw_color_values); |
| 2704 | defsubr (&Sns_server_max_request_size); | 2704 | defsubr (&Sx_server_max_request_size); |
| 2705 | defsubr (&Sx_server_vendor); | 2705 | defsubr (&Sx_server_vendor); |
| 2706 | defsubr (&Sx_server_version); | 2706 | defsubr (&Sx_server_version); |
| 2707 | defsubr (&Sns_display_pixel_width); | 2707 | defsubr (&Sx_display_pixel_width); |
| 2708 | defsubr (&Sns_display_pixel_height); | 2708 | defsubr (&Sx_display_pixel_height); |
| 2709 | defsubr (&Sns_display_usable_bounds); | 2709 | defsubr (&Sns_display_usable_bounds); |
| 2710 | defsubr (&Sx_display_mm_width); | 2710 | defsubr (&Sx_display_mm_width); |
| 2711 | defsubr (&Sx_display_mm_height); | 2711 | defsubr (&Sx_display_mm_height); |
| 2712 | defsubr (&Sx_display_screens); | 2712 | defsubr (&Sx_display_screens); |
| 2713 | defsubr (&Sns_display_planes); | 2713 | defsubr (&Sx_display_planes); |
| 2714 | defsubr (&Sns_display_color_cells); | 2714 | defsubr (&Sx_display_color_cells); |
| 2715 | defsubr (&Sx_display_visual_class); | 2715 | defsubr (&Sx_display_visual_class); |
| 2716 | defsubr (&Sx_display_backing_store); | 2716 | defsubr (&Sx_display_backing_store); |
| 2717 | defsubr (&Sx_display_save_under); | 2717 | defsubr (&Sx_display_save_under); |