aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/nsfns.m149
2 files changed, 96 insertions, 70 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c1a8f6a599f..9ef9fae7d42 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * nsfns.m
4 (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7 (Fx_display_mm_height, Fx_display_mm_width)
8 (Fx_display_backing_store, Fx_display_visual_class)
9 (Fx_display_save_under, Fx_open_connection)
10 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13 (Fx_display_pixel_width, Fx_display_pixel_height)
14 (Fx_display_usable_bounds, Fx_display_planes)
15 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16 ... */' style of docstrings.
17
12008-07-21 Dan Nicolaescu <dann@ics.uci.edu> 182008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
2 19
3 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used 20 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
diff --git a/src/nsfns.m b/src/nsfns.m
index 4d9b42e1732..8bed60a4b4b 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1046,13 +1046,13 @@ frame_parm_handler ns_frame_parm_handlers[] =
1046 1046
1047DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 1047DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame,
1048 1, 1, 0, 1048 1, 1, 0,
1049 "Make a new Nextstep window, called a \"frame\" in Emacs terms. 1049 doc: /* Make a new Nextstep window, called a \"frame\" in Emacs terms.
1050Return an Emacs frame object. 1050Return an Emacs frame object.
1051PARMS is an alist of frame parameters. 1051PARMS is an alist of frame parameters.
1052If the parameters specify that the frame should not have a minibuffer, 1052If the parameters specify that the frame should not have a minibuffer,
1053and do not specify a specific minibuffer window to use, 1053and do not specify a specific minibuffer window to use,
1054then `default-minibuffer-frame' must be a frame whose minibuffer can 1054then `default-minibuffer-frame' must be a frame whose minibuffer can
1055be shared by the new frame.") 1055be shared by the new frame. */)
1056 (parms) 1056 (parms)
1057 Lisp_Object parms; 1057 Lisp_Object parms;
1058{ 1058{
@@ -1368,7 +1368,8 @@ FRAME nil means use the selected frame. */)
1368 1368
1369 1369
1370DEFUN ("ns-popup-prefs-panel", Fns_popup_prefs_panel, Sns_popup_prefs_panel, 1370DEFUN ("ns-popup-prefs-panel", Fns_popup_prefs_panel, Sns_popup_prefs_panel,
1371 0, 0, "", "Pop up the preferences panel.") 1371 0, 0, "",
1372 doc: /* Pop up the preferences panel. */)
1372 () 1373 ()
1373{ 1374{
1374 check_ns (); 1375 check_ns ();
@@ -1378,7 +1379,8 @@ DEFUN ("ns-popup-prefs-panel", Fns_popup_prefs_panel, Sns_popup_prefs_panel,
1378 1379
1379 1380
1380DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel, 1381DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel,
1381 0, 1, "", "Pop up the font panel.") 1382 0, 1, "",
1383 doc: /* Pop up the font panel. */)
1382 (frame) 1384 (frame)
1383 Lisp_Object frame; 1385 Lisp_Object frame;
1384{ 1386{
@@ -1403,7 +1405,8 @@ DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel,
1403 1405
1404 1406
1405DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel, 1407DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel,
1406 0, 1, "", "Pop up the color panel.") 1408 0, 1, "",
1409 doc: /* Pop up the color panel. */)
1407 (frame) 1410 (frame)
1408 Lisp_Object frame; 1411 Lisp_Object frame;
1409{ 1412{
@@ -1424,10 +1427,10 @@ DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel,
1424 1427
1425 1428
1426DEFUN ("ns-read-file-name", Fns_read_file_name, Sns_read_file_name, 1, 4, 0, 1429DEFUN ("ns-read-file-name", Fns_read_file_name, Sns_read_file_name, 1, 4, 0,
1427 "Use a graphical panel to read a file name, using prompt PROMPT. 1430 doc: /* Use a graphical panel to read a file name, using prompt PROMPT.
1428Optional arg DIR, if non-nil, supplies a default directory. 1431Optional arg DIR, if non-nil, supplies a default directory.
1429Optional arg ISLOAD, if non-nil, means read a file name for saving. 1432Optional arg ISLOAD, if non-nil, means read a file name for saving.
1430Optional arg INIT, if non-nil, provides a default file name to use.") 1433Optional arg INIT, if non-nil, provides a default file name to use. */)
1431 (prompt, dir, isLoad, init) 1434 (prompt, dir, isLoad, init)
1432 Lisp_Object prompt, dir, isLoad, init; 1435 Lisp_Object prompt, dir, isLoad, init;
1433{ 1436{
@@ -1488,8 +1491,8 @@ Optional arg INIT, if non-nil, provides a default file name to use.")
1488 1491
1489 1492
1490DEFUN ("ns-get-resource", Fns_get_resource, Sns_get_resource, 2, 2, 0, 1493DEFUN ("ns-get-resource", Fns_get_resource, Sns_get_resource, 2, 2, 0,
1491 "Return the value of the property NAME of OWNER from the defaults database. 1494 doc: /* Return the value of the property NAME of OWNER from the defaults database.
1492If OWNER is nil, Emacs is assumed.") 1495If OWNER is nil, Emacs is assumed. */)
1493 (owner, name) 1496 (owner, name)
1494 Lisp_Object owner, name; 1497 Lisp_Object owner, name;
1495{ 1498{
@@ -1514,9 +1517,9 @@ If OWNER is nil, Emacs is assumed.")
1514 1517
1515 1518
1516DEFUN ("ns-set-resource", Fns_set_resource, Sns_set_resource, 3, 3, 0, 1519DEFUN ("ns-set-resource", Fns_set_resource, Sns_set_resource, 3, 3, 0,
1517 "Set property NAME of OWNER to VALUE, from the defaults database. 1520 doc: /* Set property NAME of OWNER to VALUE, from the defaults database.
1518If OWNER is nil, Emacs is assumed. 1521If OWNER is nil, Emacs is assumed.
1519If VALUE is nil, the default is removed.") 1522If VALUE is nil, the default is removed. */)
1520 (owner, name, value) 1523 (owner, name, value)
1521 Lisp_Object owner, name, value; 1524 Lisp_Object owner, name, value;
1522{ 1525{
@@ -1545,9 +1548,9 @@ If VALUE is nil, the default is removed.")
1545 1548
1546 1549
1547DEFUN ("ns-set-alpha", Fns_set_alpha, Sns_set_alpha, 2, 2, 0, 1550DEFUN ("ns-set-alpha", Fns_set_alpha, Sns_set_alpha, 2, 2, 0,
1548 "Return a color equivalent to COLOR with alpha setting ALPHA. 1551 doc: /* Return a color equivalent to COLOR with alpha setting ALPHA.
1549The argument ALPHA should be a number between 0 and 1, where 0 is full 1552The argument ALPHA should be a number between 0 and 1, where 0 is full
1550transparency and 1 is opaque.") 1553transparency and 1 is opaque. */)
1551 (color, alpha) 1554 (color, alpha)
1552 Lisp_Object color; 1555 Lisp_Object color;
1553 Lisp_Object alpha; 1556 Lisp_Object alpha;
@@ -1573,7 +1576,7 @@ transparency and 1 is opaque.")
1573DEFUN ("ns-server-max-request-size", Fns_server_max_request_size, 1576DEFUN ("ns-server-max-request-size", Fns_server_max_request_size,
1574 Sns_server_max_request_size, 1577 Sns_server_max_request_size,
1575 0, 1, 0, 1578 0, 1, 0,
1576 "This function is a no-op. It is only present for completeness.") 1579 doc: /* This function is a no-op. It is only present for completeness. */)
1577 (display) 1580 (display)
1578 Lisp_Object display; 1581 Lisp_Object display;
1579{ 1582{
@@ -1585,9 +1588,9 @@ DEFUN ("ns-server-max-request-size", Fns_server_max_request_size,
1585 1588
1586 1589
1587DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, 1590DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0,
1588 "Return the vendor ID string of Nextstep display server DISPLAY. 1591 doc: /* Return the vendor ID string of Nextstep display server DISPLAY.
1589DISPLAY should be either a frame or a display name (a string). 1592DISPLAY should be either a frame or a display name (a string).
1590If omitted or nil, the selected frame's display is used.") 1593If omitted or nil, the selected frame's display is used. */)
1591 (display) 1594 (display)
1592 Lisp_Object display; 1595 Lisp_Object display;
1593{ 1596{
@@ -1601,10 +1604,10 @@ If omitted or nil, the selected frame's display is used.")
1601 1604
1602 1605
1603DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, 1606DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0,
1604 "Return the version number of Nextstep display server DISPLAY. 1607 doc: /* Return the version number of Nextstep display server DISPLAY.
1605DISPLAY should be either a frame or a display name (a string). 1608DISPLAY should be either a frame or a display name (a string).
1606If omitted or nil, the selected frame's display is used. 1609If omitted or nil, the selected frame's display is used.
1607See also the function `ns-server-vendor'.") 1610See also the function `ns-server-vendor'. */)
1608 (display) 1611 (display)
1609 Lisp_Object display; 1612 Lisp_Object display;
1610{ 1613{
@@ -1614,9 +1617,9 @@ See also the function `ns-server-vendor'.")
1614 1617
1615 1618
1616DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, 1619DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
1617 "Return the number of screens on Nextstep display server DISPLAY. 1620 doc: /* Return the number of screens on Nextstep display server DISPLAY.
1618DISPLAY should be a frame, the display name as a string, or a terminal ID. 1621DISPLAY should be a frame, the display name as a string, or a terminal ID.
1619If omitted or nil, the selected frame's display is used.") 1622If omitted or nil, the selected frame's display is used. */)
1620 (display) 1623 (display)
1621 Lisp_Object display; 1624 Lisp_Object display;
1622{ 1625{
@@ -1631,9 +1634,9 @@ If omitted or nil, the selected frame's display is used.")
1631 1634
1632DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 1635DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height,
1633 0, 1, 0, 1636 0, 1, 0,
1634 "Return the height of Nextstep display server DISPLAY, in millimeters. 1637 doc: /* Return the height of Nextstep display server DISPLAY, in millimeters.
1635DISPLAY should be a frame, the display name as a string, or a terminal ID. 1638DISPLAY should be a frame, the display name as a string, or a terminal ID.
1636If omitted or nil, the selected frame's display is used.") 1639If omitted or nil, the selected frame's display is used. */)
1637 (display) 1640 (display)
1638 Lisp_Object display; 1641 Lisp_Object display;
1639{ 1642{
@@ -1645,9 +1648,9 @@ If omitted or nil, the selected frame's display is used.")
1645 1648
1646DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 1649DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width,
1647 0, 1, 0, 1650 0, 1, 0,
1648 "Return the width of Nextstep display server DISPLAY, in millimeters. 1651 doc: /* Return the width of Nextstep display server DISPLAY, in millimeters.
1649DISPLAY should be a frame, the display name as a string, or a terminal ID. 1652DISPLAY should be a frame, the display name as a string, or a terminal ID.
1650If omitted or nil, the selected frame's display is used.") 1653If omitted or nil, the selected frame's display is used. */)
1651 (display) 1654 (display)
1652 Lisp_Object display; 1655 Lisp_Object display;
1653{ 1656{
@@ -1658,11 +1661,11 @@ If omitted or nil, the selected frame's display is used.")
1658 1661
1659 1662
1660DEFUN ("x-display-backing-store", Fx_display_backing_store, 1663DEFUN ("x-display-backing-store", Fx_display_backing_store,
1661 Sns_display_backing_store, 0, 1, 0, 1664 Sx_display_backing_store, 0, 1, 0,
1662 "Return whether the Nexstep display DISPLAY supports backing store. 1665 doc: /* Return whether the Nexstep display DISPLAY supports backing store.
1663The value may be `buffered', `retained', or `non-retained'. 1666The value may be `buffered', `retained', or `non-retained'.
1664DISPLAY should be a frame, the display name as a string, or a terminal ID. 1667DISPLAY should be a frame, the display name as a string, or a terminal ID.
1665If omitted or nil, the selected frame's display is used.") 1668If omitted or nil, the selected frame's display is used. */)
1666 (display) 1669 (display)
1667 Lisp_Object display; 1670 Lisp_Object display;
1668{ 1671{
@@ -1683,12 +1686,12 @@ If omitted or nil, the selected frame's display is used.")
1683 1686
1684 1687
1685DEFUN ("x-display-visual-class", Fx_display_visual_class, 1688DEFUN ("x-display-visual-class", Fx_display_visual_class,
1686 Sns_display_visual_class, 0, 1, 0, 1689 Sx_display_visual_class, 0, 1, 0,
1687 "Return the visual class of the Nextstep display server DISPLAY. 1690 doc: /* Return the visual class of the Nextstep display server DISPLAY.
1688The value is one of the symbols `static-gray', `gray-scale', 1691The value is one of the symbols `static-gray', `gray-scale',
1689`static-color', `pseudo-color', `true-color', or `direct-color'. 1692`static-color', `pseudo-color', `true-color', or `direct-color'.
1690DISPLAY should be a frame, the display name as a string, or a terminal ID. 1693DISPLAY should be a frame, the display name as a string, or a terminal ID.
1691If omitted or nil, the selected frame's display is used.") 1694If omitted or nil, the selected frame's display is used. */)
1692 (display) 1695 (display)
1693 Lisp_Object display; 1696 Lisp_Object display;
1694{ 1697{
@@ -1713,11 +1716,11 @@ If omitted or nil, the selected frame's display is used.")
1713 1716
1714 1717
1715DEFUN ("x-display-save-under", Fx_display_save_under, 1718DEFUN ("x-display-save-under", Fx_display_save_under,
1716 Sns_display_save_under, 0, 1, 0, 1719 Sx_display_save_under, 0, 1, 0,
1717 "Non-nil if the Nextstep display server supports the save-under feature. 1720 doc: /* Non-nil if the Nextstep display server supports the save-under feature.
1718The optional argument DISPLAY specifies which display to ask about. 1721The optional argument DISPLAY specifies which display to ask about.
1719DISPLAY should be a frame, the display name as a string, or a terminal ID. 1722DISPLAY should be a frame, the display name as a string, or a terminal ID.
1720If omitted or nil, the selected frame's display is used.") 1723If omitted or nil, the selected frame's display is used. */)
1721 (display) 1724 (display)
1722 Lisp_Object display; 1725 Lisp_Object display;
1723{ 1726{
@@ -1739,9 +1742,10 @@ If omitted or nil, the selected frame's display is used.")
1739 1742
1740 1743
1741DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, 1744DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection,
1742 1, 3, 0, "Open a connection to a Nextstep display server. 1745 1, 3, 0,
1746 doc: /* Open a connection to a Nextstep display server.
1743DISPLAY is the name of the display to connect to. 1747DISPLAY is the name of the display to connect to.
1744Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored.") 1748Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored. */)
1745 (display, resource_string, must_succeed) 1749 (display, resource_string, must_succeed)
1746 Lisp_Object display, resource_string, must_succeed; 1750 Lisp_Object display, resource_string, must_succeed;
1747{ 1751{
@@ -1778,8 +1782,9 @@ Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored.")
1778 1782
1779 1783
1780DEFUN ("x-close-connection", Fx_close_connection, Sx_close_connection, 1784DEFUN ("x-close-connection", Fx_close_connection, Sx_close_connection,
1781 1, 1, 0, "Close the connection to the current Nextstep display server. 1785 1, 1, 0,
1782The second argument DISPLAY is currently ignored.") 1786 doc: /* Close the connection to the current Nextstep display server.
1787The second argument DISPLAY is currently ignored. */)
1783 (display) 1788 (display)
1784 Lisp_Object display; 1789 Lisp_Object display;
1785{ 1790{
@@ -1794,7 +1799,7 @@ The second argument DISPLAY is currently ignored.")
1794 1799
1795 1800
1796DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, 1801DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
1797 "Return the list of display names that Emacs has connections to.") 1802 doc: /* Return the list of display names that Emacs has connections to. */)
1798 () 1803 ()
1799{ 1804{
1800 Lisp_Object tail, result; 1805 Lisp_Object tail, result;
@@ -1808,7 +1813,8 @@ DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
1808 1813
1809 1814
1810DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others, 1815DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others,
1811 0, 0, 0, "Hides all applications other than emacs.") 1816 0, 0, 0,
1817 doc: /* Hides all applications other than emacs. */)
1812 () 1818 ()
1813{ 1819{
1814 check_ns (); 1820 check_ns ();
@@ -1817,10 +1823,11 @@ DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others,
1817} 1823}
1818 1824
1819DEFUN ("ns-hide-emacs", Fns_hide_emacs, Sns_hide_emacs, 1825DEFUN ("ns-hide-emacs", Fns_hide_emacs, Sns_hide_emacs,
1820 1, 1, 0, "If ON is non-nil, the entire emacs application is hidden. 1826 1, 1, 0,
1827 doc: /* If ON is non-nil, the entire emacs application is hidden.
1821Otherwise if emacs is hidden, it is unhidden. 1828Otherwise if emacs is hidden, it is unhidden.
1822If ON is equal to `activate', emacs is unhidden and becomes 1829If ON is equal to `activate', emacs is unhidden and becomes
1823the active application.") 1830the active application. */)
1824 (on) 1831 (on)
1825 Lisp_Object on; 1832 Lisp_Object on;
1826{ 1833{
@@ -1839,7 +1846,8 @@ the active application.")
1839 1846
1840 1847
1841DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel, 1848DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel,
1842 0, 0, 0, "Shows the 'Info' or 'About' panel for Emacs.") 1849 0, 0, 0,
1850 doc: /* Shows the 'Info' or 'About' panel for Emacs. */)
1843 () 1851 ()
1844{ 1852{
1845 check_ns (); 1853 check_ns ();
@@ -1906,10 +1914,10 @@ The font names are _NOT_ X names. */)
1906 1914
1907 1915
1908DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0, 1916DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0,
1909 "Determine font postscript or family name for font NAME. 1917 doc: /* Determine font postscript or family name for font NAME.
1910NAME should be a string containing either the font name or an XLFD 1918NAME should be a string containing either the font name or an XLFD
1911font descriptor. If string contains `fontset' and not 1919font descriptor. If string contains `fontset' and not
1912`fontset-startup', it is left alone.") 1920`fontset-startup', it is left alone. */)
1913 (name) 1921 (name)
1914 Lisp_Object name; 1922 Lisp_Object name;
1915{ 1923{
@@ -1927,8 +1935,8 @@ font descriptor. If string contains `fontset' and not
1927 1935
1928 1936
1929DEFUN ("ns-list-colors", Fns_list_colors, Sns_list_colors, 0, 1, 0, 1937DEFUN ("ns-list-colors", Fns_list_colors, Sns_list_colors, 0, 1, 0,
1930 "Return a list of all available colors. 1938 doc: /* Return a list of all available colors.
1931The optional argument FRAME is currently ignored.") 1939The optional argument FRAME is currently ignored. */)
1932 (frame) 1940 (frame)
1933 Lisp_Object frame; 1941 Lisp_Object frame;
1934{ 1942{
@@ -1968,7 +1976,7 @@ The optional argument FRAME is currently ignored.")
1968 1976
1969 1977
1970DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0, 1978DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
1971 "List available Nextstep services by querying NSApp.") 1979 doc: /* List available Nextstep services by querying NSApp. */)
1972 () 1980 ()
1973{ 1981{
1974 Lisp_Object ret = Qnil; 1982 Lisp_Object ret = Qnil;
@@ -2018,10 +2026,11 @@ DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
2018 2026
2019 2027
2020DEFUN ("ns-perform-service", Fns_perform_service, Sns_perform_service, 2028DEFUN ("ns-perform-service", Fns_perform_service, Sns_perform_service,
2021 2, 2, 0, "Perform Nextstep SERVICE on SEND. 2029 2, 2, 0,
2030 doc: /* Perform Nextstep SERVICE on SEND.
2022SEND should be either a string or nil. 2031SEND should be either a string or nil.
2023The return value is the result of the service, as string, or nil if 2032The return value is the result of the service, as string, or nil if
2024there was no result.") 2033there was no result. */)
2025 (service, send) 2034 (service, send)
2026 Lisp_Object service, send; 2035 Lisp_Object service, send;
2027{ 2036{
@@ -2050,7 +2059,7 @@ there was no result.")
2050 2059
2051DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc, 2060DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc,
2052 Sns_convert_utf8_nfd_to_nfc, 1, 1, 0, 2061 Sns_convert_utf8_nfd_to_nfc, 1, 1, 0,
2053 "Return an NFC string that matches the UTF-8 NFD string STR.") 2062 doc: /* Return an NFC string that matches the UTF-8 NFD string STR. */)
2054 (str) 2063 (str)
2055 Lisp_Object str; 2064 Lisp_Object str;
2056{ 2065{
@@ -2186,8 +2195,8 @@ x_sync (Lisp_Object frame)
2186 2195
2187 2196
2188DEFUN ("xw-color-defined-p", Fns_color_defined_p, Sns_color_defined_p, 1, 2, 0, 2197DEFUN ("xw-color-defined-p", Fns_color_defined_p, Sns_color_defined_p, 1, 2, 0,
2189 "Return t if the current Nextstep display supports the color COLOR. 2198 doc: /* Return t if the current Nextstep display supports the color COLOR.
2190The optional argument FRAME is currently ignored.") 2199The optional argument FRAME is currently ignored. */)
2191 (color, frame) 2200 (color, frame)
2192 Lisp_Object color, frame; 2201 Lisp_Object color, frame;
2193{ 2202{
@@ -2198,10 +2207,10 @@ The optional argument FRAME is currently ignored.")
2198 2207
2199 2208
2200DEFUN ("xw-color-values", Fns_color_values, Sns_color_values, 1, 2, 0, 2209DEFUN ("xw-color-values", Fns_color_values, Sns_color_values, 1, 2, 0,
2201 "Return a description of the color named COLOR. 2210 doc: /* Return a description of the color named COLOR.
2202The value is a list of integer RGBA values--(RED GREEN BLUE ALPHA). 2211The value is a list of integer RGBA values--(RED GREEN BLUE ALPHA).
2203These values appear to range from 0 to 65280; white is (65280 65280 65280 0). 2212These values appear to range from 0 to 65280; white is (65280 65280 65280 0).
2204The optional argument FRAME is currently ignored.") 2213The optional argument FRAME is currently ignored. */)
2205 (color, frame) 2214 (color, frame)
2206 Lisp_Object color, frame; 2215 Lisp_Object color, frame;
2207{ 2216{
@@ -2227,10 +2236,10 @@ The optional argument FRAME is currently ignored.")
2227 2236
2228 2237
2229DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, 2238DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
2230 "Return t if the Nextstep display supports color. 2239 doc: /* Return t if the Nextstep display supports color.
2231The optional argument DISPLAY specifies which display to ask about. 2240The optional argument DISPLAY specifies which display to ask about.
2232DISPLAY should be either a frame, a display name (a string), or terminal ID. 2241DISPLAY should be either a frame, a display name (a string), or terminal ID.
2233If omitted or nil, that stands for the selected frame's display.") 2242If omitted or nil, that stands for the selected frame's display. */)
2234 (display) 2243 (display)
2235 Lisp_Object display; 2244 Lisp_Object display;
2236{ 2245{
@@ -2248,11 +2257,11 @@ If omitted or nil, that stands for the selected frame's display.")
2248 2257
2249DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, 2258DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p,
2250 Sx_display_grayscale_p, 0, 1, 0, 2259 Sx_display_grayscale_p, 0, 1, 0,
2251 "Return t if the Nextstep display supports shades of gray. 2260 doc: /* Return t if the Nextstep display supports shades of gray.
2252Note that color displays do support shades of gray. 2261Note that color displays do support shades of gray.
2253The optional argument DISPLAY specifies which display to ask about. 2262The optional argument DISPLAY specifies which display to ask about.
2254DISPLAY should be either a frame, a display name (a string), or terminal ID. 2263DISPLAY should be either a frame, a display name (a string), or terminal ID.
2255If omitted or nil, that stands for the selected frame's display.") 2264If omitted or nil, that stands for the selected frame's display. */)
2256 (display) 2265 (display)
2257 Lisp_Object display; 2266 Lisp_Object display;
2258{ 2267{
@@ -2266,10 +2275,10 @@ If omitted or nil, that stands for the selected frame's display.")
2266 2275
2267DEFUN ("x-display-pixel-width", Fns_display_pixel_width, Sns_display_pixel_width, 2276DEFUN ("x-display-pixel-width", Fns_display_pixel_width, Sns_display_pixel_width,
2268 0, 1, 0, 2277 0, 1, 0,
2269 "Returns the width in pixels of the Nextstep display DISPLAY. 2278 doc: /* Returns the width in pixels of the Nextstep display DISPLAY.
2270The optional argument DISPLAY specifies which display to ask about. 2279The optional argument DISPLAY specifies which display to ask about.
2271DISPLAY should be either a frame, a display name (a string), or terminal ID. 2280DISPLAY should be either a frame, a display name (a string), or terminal ID.
2272If omitted or nil, that stands for the selected frame's display.") 2281If omitted or nil, that stands for the selected frame's display. */)
2273 (display) 2282 (display)
2274 Lisp_Object display; 2283 Lisp_Object display;
2275{ 2284{
@@ -2280,10 +2289,10 @@ If omitted or nil, that stands for the selected frame's display.")
2280 2289
2281DEFUN ("x-display-pixel-height", Fns_display_pixel_height, 2290DEFUN ("x-display-pixel-height", Fns_display_pixel_height,
2282 Sns_display_pixel_height, 0, 1, 0, 2291 Sns_display_pixel_height, 0, 1, 0,
2283 "Returns the height in pixels of the Nextstep display DISPLAY. 2292 doc: /* Returns the height in pixels of the Nextstep display DISPLAY.
2284The optional argument DISPLAY specifies which display to ask about. 2293The optional argument DISPLAY specifies which display to ask about.
2285DISPLAY should be either a frame, a display name (a string), or terminal ID. 2294DISPLAY should be either a frame, a display name (a string), or terminal ID.
2286If omitted or nil, that stands for the selected frame's display.") 2295If omitted or nil, that stands for the selected frame's display. */)
2287 (display) 2296 (display)
2288 Lisp_Object display; 2297 Lisp_Object display;
2289{ 2298{
@@ -2293,14 +2302,14 @@ If omitted or nil, that stands for the selected frame's display.")
2293 2302
2294DEFUN ("display-usable-bounds", Fns_display_usable_bounds, 2303DEFUN ("display-usable-bounds", Fns_display_usable_bounds,
2295 Sns_display_usable_bounds, 0, 1, 0, 2304 Sns_display_usable_bounds, 0, 1, 0,
2296 "Return the bounds of the usable part of the screen. 2305 doc: /*Return the bounds of the usable part of the screen.
2297The return value is a list of integers (LEFT TOP WIDTH HEIGHT), which 2306The return value is a list of integers (LEFT TOP WIDTH HEIGHT), which
2298are the boundaries of the usable part of the screen, excluding areas 2307are the boundaries of the usable part of the screen, excluding areas
2299reserved for the Mac menu, dock, and so forth. 2308reserved for the Mac menu, dock, and so forth.
2300 2309
2301The screen queried corresponds to DISPLAY, which should be either a 2310The screen queried corresponds to DISPLAY, which should be either a
2302frame, a display name (a string), or terminal ID. If omitted or nil, 2311frame, a display name (a string), or terminal ID. If omitted or nil,
2303that stands for the selected frame's display.") 2312that stands for the selected frame's display. */)
2304 (display) 2313 (display)
2305 Lisp_Object display; 2314 Lisp_Object display;
2306{ 2315{
@@ -2321,10 +2330,10 @@ that stands for the selected frame's display.")
2321 2330
2322DEFUN ("x-display-planes", Fx_display_planes, Sns_display_planes, 2331DEFUN ("x-display-planes", Fx_display_planes, Sns_display_planes,
2323 0, 1, 0, 2332 0, 1, 0,
2324 "Returns the number of bitplanes of the Nextstep display DISPLAY. 2333 doc: /* Returns the number of bitplanes of the Nextstep display DISPLAY.
2325The optional argument DISPLAY specifies which display to ask about. 2334The optional argument DISPLAY specifies which display to ask about.
2326DISPLAY should be either a frame, a display name (a string), or terminal ID. 2335DISPLAY should be either a frame, a display name (a string), or terminal ID.
2327If omitted or nil, that stands for the selected frame's display.") 2336If omitted or nil, that stands for the selected frame's display. */)
2328 (display) 2337 (display)
2329 Lisp_Object display; 2338 Lisp_Object display;
2330{ 2339{
@@ -2336,10 +2345,10 @@ If omitted or nil, that stands for the selected frame's display.")
2336 2345
2337DEFUN ("x-display-color-cells", Fns_display_color_cells, 2346DEFUN ("x-display-color-cells", Fns_display_color_cells,
2338 Sns_display_color_cells, 0, 1, 0, 2347 Sns_display_color_cells, 0, 1, 0,
2339 "Returns the number of color cells of the Nextstep display DISPLAY. 2348 doc: /* Returns the number of color cells of the Nextstep display DISPLAY.
2340The optional argument DISPLAY specifies which display to ask about. 2349The optional argument DISPLAY specifies which display to ask about.
2341DISPLAY should be either a frame, a display name (a string), or terminal ID. 2350DISPLAY should be either a frame, a display name (a string), or terminal ID.
2342If omitted or nil, that stands for the selected frame's display.") 2351If omitted or nil, that stands for the selected frame's display. */)
2343 (display) 2352 (display)
2344 Lisp_Object display; 2353 Lisp_Object display;
2345{ 2354{
@@ -2517,7 +2526,7 @@ syms_of_nsfns ()
2517 staticpro (&Qfontsize); 2526 staticpro (&Qfontsize);
2518 2527
2519 DEFVAR_LISP ("ns-icon-type-alist", &Vns_icon_type_alist, 2528 DEFVAR_LISP ("ns-icon-type-alist", &Vns_icon_type_alist,
2520 "Alist of elements (REGEXP . IMAGE) for images of icons associated to frames. 2529 doc: /* Alist of elements (REGEXP . IMAGE) for images of icons associated to frames.
2521If the title of a frame matches REGEXP, then IMAGE.tiff is 2530If the title of a frame matches REGEXP, then IMAGE.tiff is
2522selected as the image of the icon representing the frame when it's 2531selected as the image of the icon representing the frame when it's
2523miniaturized. If an element is t, then Emacs tries to select an icon 2532miniaturized. If an element is t, then Emacs tries to select an icon
@@ -2534,7 +2543,7 @@ Example: Install an icon Gnus.tiff and execute the following code
2534 . \"Gnus\")))) 2543 . \"Gnus\"))))
2535 2544
2536When you miniaturize a Group, Summary or Article frame, Gnus.tiff will 2545When you miniaturize a Group, Summary or Article frame, Gnus.tiff will
2537be used as the image of the icon representing the frame."); 2546be used as the image of the icon representing the frame. */);
2538 Vns_icon_type_alist = Fcons (Qt, Qnil); 2547 Vns_icon_type_alist = Fcons (Qt, Qnil);
2539 2548
2540 defsubr (&Sns_read_file_name); 2549 defsubr (&Sns_read_file_name);