diff options
| author | Jason Rumney | 2001-11-12 23:57:09 +0000 |
|---|---|---|
| committer | Jason Rumney | 2001-11-12 23:57:09 +0000 |
| commit | 33f096701c84fc754bf5486cd2743dd030f5eb4a (patch) | |
| tree | 8b94db4dad6b9dd0a7e94d0a492fea091d4f0f26 /src/w32proc.c | |
| parent | b6f4c7ba9cef461e5c827cb3f485ad82445ff85a (diff) | |
| download | emacs-33f096701c84fc754bf5486cd2743dd030f5eb4a.tar.gz emacs-33f096701c84fc754bf5486cd2743dd030f5eb4a.zip | |
Change doc-string comments to `new style'. [w/`doc:' keyword]. Doc fixes.
Diffstat (limited to 'src/w32proc.c')
| -rw-r--r-- | src/w32proc.c | 262 |
1 files changed, 137 insertions, 125 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 56ec9349e8d..7c9aad6b0a5 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1646,14 +1646,14 @@ extern BOOL init_winsock (int load_now); | |||
| 1646 | extern Lisp_Object Vsystem_name; | 1646 | extern Lisp_Object Vsystem_name; |
| 1647 | 1647 | ||
| 1648 | DEFUN ("w32-has-winsock", Fw32_has_winsock, Sw32_has_winsock, 0, 1, 0, | 1648 | DEFUN ("w32-has-winsock", Fw32_has_winsock, Sw32_has_winsock, 0, 1, 0, |
| 1649 | "Test for presence of the Windows socket library `winsock'.\n\ | 1649 | doc: /* Test for presence of the Windows socket library `winsock'. |
| 1650 | Returns non-nil if winsock support is present, nil otherwise.\n\ | 1650 | Returns non-nil if winsock support is present, nil otherwise. |
| 1651 | \n\ | 1651 | |
| 1652 | If the optional argument LOAD-NOW is non-nil, the winsock library is\n\ | 1652 | If the optional argument LOAD-NOW is non-nil, the winsock library is |
| 1653 | also loaded immediately if not already loaded. If winsock is loaded,\n\ | 1653 | also loaded immediately if not already loaded. If winsock is loaded, |
| 1654 | the winsock local hostname is returned (since this may be different from\n\ | 1654 | the winsock local hostname is returned (since this may be different from |
| 1655 | the value of `system-name' and should supplant it), otherwise t is\n\ | 1655 | the value of `system-name' and should supplant it), otherwise t is |
| 1656 | returned to indicate winsock support is present.") | 1656 | returned to indicate winsock support is present. */) |
| 1657 | (load_now) | 1657 | (load_now) |
| 1658 | Lisp_Object load_now; | 1658 | Lisp_Object load_now; |
| 1659 | { | 1659 | { |
| @@ -1682,10 +1682,10 @@ returned to indicate winsock support is present.") | |||
| 1682 | 1682 | ||
| 1683 | DEFUN ("w32-unload-winsock", Fw32_unload_winsock, Sw32_unload_winsock, | 1683 | DEFUN ("w32-unload-winsock", Fw32_unload_winsock, Sw32_unload_winsock, |
| 1684 | 0, 0, 0, | 1684 | 0, 0, 0, |
| 1685 | "Unload the Windows socket library `winsock' if loaded.\n\ | 1685 | doc: /* Unload the Windows socket library `winsock' if loaded. |
| 1686 | This is provided to allow dial-up socket connections to be disconnected\n\ | 1686 | This is provided to allow dial-up socket connections to be disconnected |
| 1687 | when no longer needed. Returns nil without unloading winsock if any\n\ | 1687 | when no longer needed. Returns nil without unloading winsock if any |
| 1688 | socket connections still exist.") | 1688 | socket connections still exist. */) |
| 1689 | () | 1689 | () |
| 1690 | { | 1690 | { |
| 1691 | return term_winsock () ? Qt : Qnil; | 1691 | return term_winsock () ? Qt : Qnil; |
| @@ -1704,9 +1704,9 @@ socket connections still exist.") | |||
| 1704 | } while (0) | 1704 | } while (0) |
| 1705 | 1705 | ||
| 1706 | DEFUN ("w32-short-file-name", Fw32_short_file_name, Sw32_short_file_name, 1, 1, 0, | 1706 | DEFUN ("w32-short-file-name", Fw32_short_file_name, Sw32_short_file_name, 1, 1, 0, |
| 1707 | "Return the short file name version (8.3) of the full path of FILENAME.\n\ | 1707 | doc: /* Return the short file name version (8.3) of the full path of FILENAME. |
| 1708 | If FILENAME does not exist, return nil.\n\ | 1708 | If FILENAME does not exist, return nil. |
| 1709 | All path elements in FILENAME are converted to their short names.") | 1709 | All path elements in FILENAME are converted to their short names. */) |
| 1710 | (filename) | 1710 | (filename) |
| 1711 | Lisp_Object filename; | 1711 | Lisp_Object filename; |
| 1712 | { | 1712 | { |
| @@ -1729,9 +1729,9 @@ All path elements in FILENAME are converted to their short names.") | |||
| 1729 | 1729 | ||
| 1730 | DEFUN ("w32-long-file-name", Fw32_long_file_name, Sw32_long_file_name, | 1730 | DEFUN ("w32-long-file-name", Fw32_long_file_name, Sw32_long_file_name, |
| 1731 | 1, 1, 0, | 1731 | 1, 1, 0, |
| 1732 | "Return the long file name version of the full path of FILENAME.\n\ | 1732 | doc: /* Return the long file name version of the full path of FILENAME. |
| 1733 | If FILENAME does not exist, return nil.\n\ | 1733 | If FILENAME does not exist, return nil. |
| 1734 | All path elements in FILENAME are converted to their long names.") | 1734 | All path elements in FILENAME are converted to their long names. */) |
| 1735 | (filename) | 1735 | (filename) |
| 1736 | Lisp_Object filename; | 1736 | Lisp_Object filename; |
| 1737 | { | 1737 | { |
| @@ -1750,15 +1750,15 @@ All path elements in FILENAME are converted to their long names.") | |||
| 1750 | return build_string (longname); | 1750 | return build_string (longname); |
| 1751 | } | 1751 | } |
| 1752 | 1752 | ||
| 1753 | DEFUN ("w32-set-process-priority", Fw32_set_process_priority, Sw32_set_process_priority, | 1753 | DEFUN ("w32-set-process-priority", Fw32_set_process_priority, |
| 1754 | 2, 2, 0, | 1754 | Sw32_set_process_priority, 2, 2, 0, |
| 1755 | "Set the priority of PROCESS to PRIORITY.\n\ | 1755 | doc: /* Set the priority of PROCESS to PRIORITY. |
| 1756 | If PROCESS is nil, the priority of Emacs is changed, otherwise the\n\ | 1756 | If PROCESS is nil, the priority of Emacs is changed, otherwise the |
| 1757 | priority of the process whose pid is PROCESS is changed.\n\ | 1757 | priority of the process whose pid is PROCESS is changed. |
| 1758 | PRIORITY should be one of the symbols high, normal, or low;\n\ | 1758 | PRIORITY should be one of the symbols high, normal, or low; |
| 1759 | any other symbol will be interpreted as normal.\n\ | 1759 | any other symbol will be interpreted as normal. |
| 1760 | \n\ | 1760 | |
| 1761 | If successful, the return value is t, otherwise nil.") | 1761 | If successful, the return value is t, otherwise nil. */) |
| 1762 | (process, priority) | 1762 | (process, priority) |
| 1763 | Lisp_Object process, priority; | 1763 | Lisp_Object process, priority; |
| 1764 | { | 1764 | { |
| @@ -1804,19 +1804,20 @@ If successful, the return value is t, otherwise nil.") | |||
| 1804 | } | 1804 | } |
| 1805 | 1805 | ||
| 1806 | 1806 | ||
| 1807 | DEFUN ("w32-get-locale-info", Fw32_get_locale_info, Sw32_get_locale_info, 1, 2, 0, | 1807 | DEFUN ("w32-get-locale-info", Fw32_get_locale_info, |
| 1808 | "Return information about the Windows locale LCID.\n\ | 1808 | Sw32_get_locale_info, 1, 2, 0, |
| 1809 | By default, return a three letter locale code which encodes the default\n\ | 1809 | doc: /* Return information about the Windows locale LCID. |
| 1810 | language as the first two characters, and the country or regionial variant\n\ | 1810 | By default, return a three letter locale code which encodes the default |
| 1811 | as the third letter. For example, ENU refers to `English (United States)',\n\ | 1811 | language as the first two characters, and the country or regionial variant |
| 1812 | while ENC means `English (Canadian)'.\n\ | 1812 | as the third letter. For example, ENU refers to `English (United States)', |
| 1813 | \n\ | 1813 | while ENC means `English (Canadian)'. |
| 1814 | If the optional argument LONGFORM is t, the long form of the locale\n\ | 1814 | |
| 1815 | name is returned, e.g. `English (United States)' instead; if LONGFORM\n\ | 1815 | If the optional argument LONGFORM is t, the long form of the locale |
| 1816 | is a number, it is interpreted as an LCTYPE constant and the corresponding\n\ | 1816 | name is returned, e.g. `English (United States)' instead; if LONGFORM |
| 1817 | locale information is returned.\n\ | 1817 | is a number, it is interpreted as an LCTYPE constant and the corresponding |
| 1818 | \n\ | 1818 | locale information is returned. |
| 1819 | If LCID (a 16-bit number) is not a valid locale, the result is nil.") | 1819 | |
| 1820 | If LCID (a 16-bit number) is not a valid locale, the result is nil. */) | ||
| 1820 | (lcid, longform) | 1821 | (lcid, longform) |
| 1821 | Lisp_Object lcid, longform; | 1822 | Lisp_Object lcid, longform; |
| 1822 | { | 1823 | { |
| @@ -1859,10 +1860,11 @@ If LCID (a 16-bit number) is not a valid locale, the result is nil.") | |||
| 1859 | } | 1860 | } |
| 1860 | 1861 | ||
| 1861 | 1862 | ||
| 1862 | DEFUN ("w32-get-current-locale-id", Fw32_get_current_locale_id, Sw32_get_current_locale_id, 0, 0, 0, | 1863 | DEFUN ("w32-get-current-locale-id", Fw32_get_current_locale_id, |
| 1863 | "Return Windows locale id for current locale setting.\n\ | 1864 | Sw32_get_current_locale_id, 0, 0, 0, |
| 1864 | This is a numerical value; use `w32-get-locale-info' to convert to a\n\ | 1865 | doc: /* Return Windows locale id for current locale setting. |
| 1865 | human-readable form.") | 1866 | This is a numerical value; use `w32-get-locale-info' to convert to a |
| 1867 | human-readable form. */) | ||
| 1866 | () | 1868 | () |
| 1867 | { | 1869 | { |
| 1868 | return make_number (GetThreadLocale ()); | 1870 | return make_number (GetThreadLocale ()); |
| @@ -1896,10 +1898,11 @@ BOOL CALLBACK enum_locale_fn (LPTSTR localeNum) | |||
| 1896 | return TRUE; | 1898 | return TRUE; |
| 1897 | } | 1899 | } |
| 1898 | 1900 | ||
| 1899 | DEFUN ("w32-get-valid-locale-ids", Fw32_get_valid_locale_ids, Sw32_get_valid_locale_ids, 0, 0, 0, | 1901 | DEFUN ("w32-get-valid-locale-ids", Fw32_get_valid_locale_ids, |
| 1900 | "Return list of all valid Windows locale ids.\n\ | 1902 | Sw32_get_valid_locale_ids, 0, 0, 0, |
| 1901 | Each id is a numerical value; use `w32-get-locale-info' to convert to a\n\ | 1903 | doc: /* Return list of all valid Windows locale ids. |
| 1902 | human-readable form.") | 1904 | Each id is a numerical value; use `w32-get-locale-info' to convert to a |
| 1905 | human-readable form. */) | ||
| 1903 | () | 1906 | () |
| 1904 | { | 1907 | { |
| 1905 | Vw32_valid_locale_ids = Qnil; | 1908 | Vw32_valid_locale_ids = Qnil; |
| @@ -1912,11 +1915,11 @@ human-readable form.") | |||
| 1912 | 1915 | ||
| 1913 | 1916 | ||
| 1914 | DEFUN ("w32-get-default-locale-id", Fw32_get_default_locale_id, Sw32_get_default_locale_id, 0, 1, 0, | 1917 | DEFUN ("w32-get-default-locale-id", Fw32_get_default_locale_id, Sw32_get_default_locale_id, 0, 1, 0, |
| 1915 | "Return Windows locale id for default locale setting.\n\ | 1918 | doc: /* Return Windows locale id for default locale setting. |
| 1916 | By default, the system default locale setting is returned; if the optional\n\ | 1919 | By default, the system default locale setting is returned; if the optional |
| 1917 | parameter USERP is non-nil, the user default locale setting is returned.\n\ | 1920 | parameter USERP is non-nil, the user default locale setting is returned. |
| 1918 | This is a numerical value; use `w32-get-locale-info' to convert to a\n\ | 1921 | This is a numerical value; use `w32-get-locale-info' to convert to a |
| 1919 | human-readable form.") | 1922 | human-readable form. */) |
| 1920 | (userp) | 1923 | (userp) |
| 1921 | Lisp_Object userp; | 1924 | Lisp_Object userp; |
| 1922 | { | 1925 | { |
| @@ -1927,8 +1930,8 @@ human-readable form.") | |||
| 1927 | 1930 | ||
| 1928 | 1931 | ||
| 1929 | DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_locale, 1, 1, 0, | 1932 | DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_locale, 1, 1, 0, |
| 1930 | "Make Windows locale LCID be the current locale setting for Emacs.\n\ | 1933 | doc: /* Make Windows locale LCID be the current locale setting for Emacs. |
| 1931 | If successful, the new locale id is returned, otherwise nil.") | 1934 | If successful, the new locale id is returned, otherwise nil. */) |
| 1932 | (lcid) | 1935 | (lcid) |
| 1933 | Lisp_Object lcid; | 1936 | Lisp_Object lcid; |
| 1934 | { | 1937 | { |
| @@ -1960,8 +1963,9 @@ BOOL CALLBACK enum_codepage_fn (LPTSTR codepageNum) | |||
| 1960 | return TRUE; | 1963 | return TRUE; |
| 1961 | } | 1964 | } |
| 1962 | 1965 | ||
| 1963 | DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages, Sw32_get_valid_codepages, 0, 0, 0, | 1966 | DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages, |
| 1964 | "Return list of all valid Windows codepages.") | 1967 | Sw32_get_valid_codepages, 0, 0, 0, |
| 1968 | doc: /* Return list of all valid Windows codepages. */) | ||
| 1965 | () | 1969 | () |
| 1966 | { | 1970 | { |
| 1967 | Vw32_valid_codepages = Qnil; | 1971 | Vw32_valid_codepages = Qnil; |
| @@ -1973,18 +1977,20 @@ DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages, Sw32_get_valid_codep | |||
| 1973 | } | 1977 | } |
| 1974 | 1978 | ||
| 1975 | 1979 | ||
| 1976 | DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage, Sw32_get_console_codepage, 0, 0, 0, | 1980 | DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage, |
| 1977 | "Return current Windows codepage for console input.") | 1981 | Sw32_get_console_codepage, 0, 0, 0, |
| 1982 | doc: /* Return current Windows codepage for console input. */) | ||
| 1978 | () | 1983 | () |
| 1979 | { | 1984 | { |
| 1980 | return make_number (GetConsoleCP ()); | 1985 | return make_number (GetConsoleCP ()); |
| 1981 | } | 1986 | } |
| 1982 | 1987 | ||
| 1983 | 1988 | ||
| 1984 | DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage, Sw32_set_console_codepage, 1, 1, 0, | 1989 | DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage, |
| 1985 | "Make Windows codepage CP be the current codepage setting for Emacs.\n\ | 1990 | Sw32_set_console_codepage, 1, 1, 0, |
| 1986 | The codepage setting affects keyboard input and display in tty mode.\n\ | 1991 | doc: /* Make Windows codepage CP be the current codepage setting for Emacs. |
| 1987 | If successful, the new CP is returned, otherwise nil.") | 1992 | The codepage setting affects keyboard input and display in tty mode. |
| 1993 | If successful, the new CP is returned, otherwise nil. */) | ||
| 1988 | (cp) | 1994 | (cp) |
| 1989 | Lisp_Object cp; | 1995 | Lisp_Object cp; |
| 1990 | { | 1996 | { |
| @@ -2000,18 +2006,20 @@ If successful, the new CP is returned, otherwise nil.") | |||
| 2000 | } | 2006 | } |
| 2001 | 2007 | ||
| 2002 | 2008 | ||
| 2003 | DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage, Sw32_get_console_output_codepage, 0, 0, 0, | 2009 | DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage, |
| 2004 | "Return current Windows codepage for console output.") | 2010 | Sw32_get_console_output_codepage, 0, 0, 0, |
| 2011 | doc: /* Return current Windows codepage for console output. */) | ||
| 2005 | () | 2012 | () |
| 2006 | { | 2013 | { |
| 2007 | return make_number (GetConsoleOutputCP ()); | 2014 | return make_number (GetConsoleOutputCP ()); |
| 2008 | } | 2015 | } |
| 2009 | 2016 | ||
| 2010 | 2017 | ||
| 2011 | DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage, Sw32_set_console_output_codepage, 1, 1, 0, | 2018 | DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage, |
| 2012 | "Make Windows codepage CP be the current codepage setting for Emacs.\n\ | 2019 | Sw32_set_console_output_codepage, 1, 1, 0, |
| 2013 | The codepage setting affects keyboard input and display in tty mode.\n\ | 2020 | doc: /* Make Windows codepage CP be the current codepage setting for Emacs. |
| 2014 | If successful, the new CP is returned, otherwise nil.") | 2021 | The codepage setting affects keyboard input and display in tty mode. |
| 2022 | If successful, the new CP is returned, otherwise nil. */) | ||
| 2015 | (cp) | 2023 | (cp) |
| 2016 | Lisp_Object cp; | 2024 | Lisp_Object cp; |
| 2017 | { | 2025 | { |
| @@ -2027,9 +2035,10 @@ If successful, the new CP is returned, otherwise nil.") | |||
| 2027 | } | 2035 | } |
| 2028 | 2036 | ||
| 2029 | 2037 | ||
| 2030 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, Sw32_get_codepage_charset, 1, 1, 0, | 2038 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, |
| 2031 | "Return charset of codepage CP.\n\ | 2039 | Sw32_get_codepage_charset, 1, 1, 0, |
| 2032 | Returns nil if the codepage is not valid.") | 2040 | doc: /* Return charset of codepage CP. |
| 2041 | Returns nil if the codepage is not valid. */) | ||
| 2033 | (cp) | 2042 | (cp) |
| 2034 | Lisp_Object cp; | 2043 | Lisp_Object cp; |
| 2035 | { | 2044 | { |
| @@ -2047,9 +2056,10 @@ Returns nil if the codepage is not valid.") | |||
| 2047 | } | 2056 | } |
| 2048 | 2057 | ||
| 2049 | 2058 | ||
| 2050 | DEFUN ("w32-get-valid-keyboard-layouts", Fw32_get_valid_keyboard_layouts, Sw32_get_valid_keyboard_layouts, 0, 0, 0, | 2059 | DEFUN ("w32-get-valid-keyboard-layouts", Fw32_get_valid_keyboard_layouts, |
| 2051 | "Return list of Windows keyboard languages and layouts.\n\ | 2060 | Sw32_get_valid_keyboard_layouts, 0, 0, 0, |
| 2052 | The return value is a list of pairs of language id and layout id.") | 2061 | doc: /* Return list of Windows keyboard languages and layouts. |
| 2062 | The return value is a list of pairs of language id and layout id. */) | ||
| 2053 | () | 2063 | () |
| 2054 | { | 2064 | { |
| 2055 | int num_layouts = GetKeyboardLayoutList (0, NULL); | 2065 | int num_layouts = GetKeyboardLayoutList (0, NULL); |
| @@ -2072,9 +2082,10 @@ The return value is a list of pairs of language id and layout id.") | |||
| 2072 | } | 2082 | } |
| 2073 | 2083 | ||
| 2074 | 2084 | ||
| 2075 | DEFUN ("w32-get-keyboard-layout", Fw32_get_keyboard_layout, Sw32_get_keyboard_layout, 0, 0, 0, | 2085 | DEFUN ("w32-get-keyboard-layout", Fw32_get_keyboard_layout, |
| 2076 | "Return current Windows keyboard language and layout.\n\ | 2086 | Sw32_get_keyboard_layout, 0, 0, 0, |
| 2077 | The return value is the cons of the language id and the layout id.") | 2087 | doc: /* Return current Windows keyboard language and layout. |
| 2088 | The return value is the cons of the language id and the layout id. */) | ||
| 2078 | () | 2089 | () |
| 2079 | { | 2090 | { |
| 2080 | DWORD kl = (DWORD) GetKeyboardLayout (dwWindowsThreadId); | 2091 | DWORD kl = (DWORD) GetKeyboardLayout (dwWindowsThreadId); |
| @@ -2084,10 +2095,11 @@ The return value is the cons of the language id and the layout id.") | |||
| 2084 | } | 2095 | } |
| 2085 | 2096 | ||
| 2086 | 2097 | ||
| 2087 | DEFUN ("w32-set-keyboard-layout", Fw32_set_keyboard_layout, Sw32_set_keyboard_layout, 1, 1, 0, | 2098 | DEFUN ("w32-set-keyboard-layout", Fw32_set_keyboard_layout, |
| 2088 | "Make LAYOUT be the current keyboard layout for Emacs.\n\ | 2099 | Sw32_set_keyboard_layout, 1, 1, 0, |
| 2089 | The keyboard layout setting affects interpretation of keyboard input.\n\ | 2100 | doc: /* Make LAYOUT be the current keyboard layout for Emacs. |
| 2090 | If successful, the new layout id is returned, otherwise nil.") | 2101 | The keyboard layout setting affects interpretation of keyboard input. |
| 2102 | If successful, the new layout id is returned, otherwise nil. */) | ||
| 2091 | (layout) | 2103 | (layout) |
| 2092 | Lisp_Object layout; | 2104 | Lisp_Object layout; |
| 2093 | { | 2105 | { |
| @@ -2150,75 +2162,75 @@ syms_of_ntproc () | |||
| 2150 | defsubr (&Sw32_set_keyboard_layout); | 2162 | defsubr (&Sw32_set_keyboard_layout); |
| 2151 | 2163 | ||
| 2152 | DEFVAR_LISP ("w32-quote-process-args", &Vw32_quote_process_args, | 2164 | DEFVAR_LISP ("w32-quote-process-args", &Vw32_quote_process_args, |
| 2153 | "Non-nil enables quoting of process arguments to ensure correct parsing.\n\ | 2165 | doc: /* Non-nil enables quoting of process arguments to ensure correct parsing. |
| 2154 | Because Windows does not directly pass argv arrays to child processes,\n\ | 2166 | Because Windows does not directly pass argv arrays to child processes, |
| 2155 | programs have to reconstruct the argv array by parsing the command\n\ | 2167 | programs have to reconstruct the argv array by parsing the command |
| 2156 | line string. For an argument to contain a space, it must be enclosed\n\ | 2168 | line string. For an argument to contain a space, it must be enclosed |
| 2157 | in double quotes or it will be parsed as multiple arguments.\n\ | 2169 | in double quotes or it will be parsed as multiple arguments. |
| 2158 | \n\ | 2170 | |
| 2159 | If the value is a character, that character will be used to escape any\n\ | 2171 | If the value is a character, that character will be used to escape any |
| 2160 | quote characters that appear, otherwise a suitable escape character\n\ | 2172 | quote characters that appear, otherwise a suitable escape character |
| 2161 | will be chosen based on the type of the program."); | 2173 | will be chosen based on the type of the program. */); |
| 2162 | Vw32_quote_process_args = Qt; | 2174 | Vw32_quote_process_args = Qt; |
| 2163 | 2175 | ||
| 2164 | DEFVAR_LISP ("w32-start-process-show-window", | 2176 | DEFVAR_LISP ("w32-start-process-show-window", |
| 2165 | &Vw32_start_process_show_window, | 2177 | &Vw32_start_process_show_window, |
| 2166 | "When nil, new child processes hide their windows.\n\ | 2178 | doc: /* When nil, new child processes hide their windows. |
| 2167 | When non-nil, they show their window in the method of their choice.\n\ | 2179 | When non-nil, they show their window in the method of their choice. |
| 2168 | This variable doesn't affect GUI applications, which will never be hidden."); | 2180 | This variable doesn't affect GUI applications, which will never be hidden. */); |
| 2169 | Vw32_start_process_show_window = Qnil; | 2181 | Vw32_start_process_show_window = Qnil; |
| 2170 | 2182 | ||
| 2171 | DEFVAR_LISP ("w32-start-process-share-console", | 2183 | DEFVAR_LISP ("w32-start-process-share-console", |
| 2172 | &Vw32_start_process_share_console, | 2184 | &Vw32_start_process_share_console, |
| 2173 | "When nil, new child processes are given a new console.\n\ | 2185 | doc: /* When nil, new child processes are given a new console. |
| 2174 | When non-nil, they share the Emacs console; this has the limitation of\n\ | 2186 | When non-nil, they share the Emacs console; this has the limitation of |
| 2175 | allowing only only DOS subprocess to run at a time (whether started directly\n\ | 2187 | allowing only only DOS subprocess to run at a time (whether started directly |
| 2176 | or indirectly by Emacs), and preventing Emacs from cleanly terminating the\n\ | 2188 | or indirectly by Emacs), and preventing Emacs from cleanly terminating the |
| 2177 | subprocess group, but may allow Emacs to interrupt a subprocess that doesn't\n\ | 2189 | subprocess group, but may allow Emacs to interrupt a subprocess that doesn't |
| 2178 | otherwise respond to interrupts from Emacs."); | 2190 | otherwise respond to interrupts from Emacs. */); |
| 2179 | Vw32_start_process_share_console = Qnil; | 2191 | Vw32_start_process_share_console = Qnil; |
| 2180 | 2192 | ||
| 2181 | DEFVAR_LISP ("w32-start-process-inherit-error-mode", | 2193 | DEFVAR_LISP ("w32-start-process-inherit-error-mode", |
| 2182 | &Vw32_start_process_inherit_error_mode, | 2194 | &Vw32_start_process_inherit_error_mode, |
| 2183 | "When nil, new child processes revert to the default error mode.\n\ | 2195 | doc: /* When nil, new child processes revert to the default error mode. |
| 2184 | When non-nil, they inherit their error mode setting from Emacs, which stops\n\ | 2196 | When non-nil, they inherit their error mode setting from Emacs, which stops |
| 2185 | them blocking when trying to access unmounted drives etc."); | 2197 | them blocking when trying to access unmounted drives etc. */); |
| 2186 | Vw32_start_process_inherit_error_mode = Qt; | 2198 | Vw32_start_process_inherit_error_mode = Qt; |
| 2187 | 2199 | ||
| 2188 | DEFVAR_INT ("w32-pipe-read-delay", &Vw32_pipe_read_delay, | 2200 | DEFVAR_INT ("w32-pipe-read-delay", &Vw32_pipe_read_delay, |
| 2189 | "Forced delay before reading subprocess output.\n\ | 2201 | doc: /* Forced delay before reading subprocess output. |
| 2190 | This is done to improve the buffering of subprocess output, by\n\ | 2202 | This is done to improve the buffering of subprocess output, by |
| 2191 | avoiding the inefficiency of frequently reading small amounts of data.\n\ | 2203 | avoiding the inefficiency of frequently reading small amounts of data. |
| 2192 | \n\ | 2204 | |
| 2193 | If positive, the value is the number of milliseconds to sleep before\n\ | 2205 | If positive, the value is the number of milliseconds to sleep before |
| 2194 | reading the subprocess output. If negative, the magnitude is the number\n\ | 2206 | reading the subprocess output. If negative, the magnitude is the number |
| 2195 | of time slices to wait (effectively boosting the priority of the child\n\ | 2207 | of time slices to wait (effectively boosting the priority of the child |
| 2196 | process temporarily). A value of zero disables waiting entirely."); | 2208 | process temporarily). A value of zero disables waiting entirely. */); |
| 2197 | Vw32_pipe_read_delay = 50; | 2209 | Vw32_pipe_read_delay = 50; |
| 2198 | 2210 | ||
| 2199 | DEFVAR_LISP ("w32-downcase-file-names", &Vw32_downcase_file_names, | 2211 | DEFVAR_LISP ("w32-downcase-file-names", &Vw32_downcase_file_names, |
| 2200 | "Non-nil means convert all-upper case file names to lower case.\n\ | 2212 | doc: /* Non-nil means convert all-upper case file names to lower case. |
| 2201 | This applies when performing completions and file name expansion.\n\ | 2213 | This applies when performing completions and file name expansion. |
| 2202 | Note that the value of this setting also affects remote file names,\n\ | 2214 | Note that the value of this setting also affects remote file names, |
| 2203 | so you probably don't want to set to non-nil if you use case-sensitive\n\ | 2215 | so you probably don't want to set to non-nil if you use case-sensitive |
| 2204 | filesystems via ange-ftp."); | 2216 | filesystems via ange-ftp. */); |
| 2205 | Vw32_downcase_file_names = Qnil; | 2217 | Vw32_downcase_file_names = Qnil; |
| 2206 | 2218 | ||
| 2207 | #if 0 | 2219 | #if 0 |
| 2208 | DEFVAR_LISP ("w32-generate-fake-inodes", &Vw32_generate_fake_inodes, | 2220 | DEFVAR_LISP ("w32-generate-fake-inodes", &Vw32_generate_fake_inodes, |
| 2209 | "Non-nil means attempt to fake realistic inode values.\n\ | 2221 | doc: /* Non-nil means attempt to fake realistic inode values. |
| 2210 | This works by hashing the truename of files, and should detect \n\ | 2222 | This works by hashing the truename of files, and should detect |
| 2211 | aliasing between long and short (8.3 DOS) names, but can have\n\ | 2223 | aliasing between long and short (8.3 DOS) names, but can have |
| 2212 | false positives because of hash collisions. Note that determing\n\ | 2224 | false positives because of hash collisions. Note that determing |
| 2213 | the truename of a file can be slow."); | 2225 | the truename of a file can be slow. */); |
| 2214 | Vw32_generate_fake_inodes = Qnil; | 2226 | Vw32_generate_fake_inodes = Qnil; |
| 2215 | #endif | 2227 | #endif |
| 2216 | 2228 | ||
| 2217 | DEFVAR_LISP ("w32-get-true-file-attributes", &Vw32_get_true_file_attributes, | 2229 | DEFVAR_LISP ("w32-get-true-file-attributes", &Vw32_get_true_file_attributes, |
| 2218 | "Non-nil means determine accurate link count in file-attributes.\n\ | 2230 | doc: /* Non-nil means determine accurate link count in file-attributes. |
| 2219 | This option slows down file-attributes noticeably, so is disabled by\n\ | 2231 | This option slows down file-attributes noticeably, so is disabled by |
| 2220 | default. Note that it is only useful for files on NTFS volumes,\n\ | 2232 | default. Note that it is only useful for files on NTFS volumes, |
| 2221 | where hard links are supported."); | 2233 | where hard links are supported. */); |
| 2222 | Vw32_get_true_file_attributes = Qnil; | 2234 | Vw32_get_true_file_attributes = Qnil; |
| 2223 | } | 2235 | } |
| 2224 | /* end of ntproc.c */ | 2236 | /* end of ntproc.c */ |