diff options
| author | Eli Zaretskii | 2013-12-07 18:51:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-07 18:51:33 +0200 |
| commit | 7df14908a304c99289eaa314987f65565f94f4df (patch) | |
| tree | 538c44ef604c1e488682adafd3ab1c68d7dbd607 | |
| parent | 577c8624d0f51de542c584570917b96aa155b04f (diff) | |
| download | emacs-7df14908a304c99289eaa314987f65565f94f4df.tar.gz emacs-7df14908a304c99289eaa314987f65565f94f4df.zip | |
Updated documentation.
| -rw-r--r-- | doc/emacs/mule.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 10 | ||||
| -rw-r--r-- | etc/NEWS | 8 | ||||
| -rw-r--r-- | src/fileio.c | 10 |
4 files changed, 41 insertions, 2 deletions
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index ebddc46be94..6efbc2b7190 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -1130,6 +1130,21 @@ In the default language environment, non-@acronym{ASCII} characters in | |||
| 1130 | file names are not encoded specially; they appear in the file system | 1130 | file names are not encoded specially; they appear in the file system |
| 1131 | using the internal Emacs representation. | 1131 | using the internal Emacs representation. |
| 1132 | 1132 | ||
| 1133 | @cindex file-name encoding, MS-Windows | ||
| 1134 | @vindex w32-unicode-filenames | ||
| 1135 | When Emacs runs on MS-Windows versions that are descendants of the | ||
| 1136 | NT family (Windows 2000, XP, Vista, Windows 7, and Windows 8), the | ||
| 1137 | value of @code{file-name-coding-system} is largely ignored, as Emacs | ||
| 1138 | by default uses APIs that allow to pass Unicode file names directly. | ||
| 1139 | By contrast, on Windows 9X, file names are encoded using | ||
| 1140 | @code{file-name-coding-system}, which should be set to the codepage | ||
| 1141 | (@pxref{Coding Systems, codepage}) pertinent for the current system | ||
| 1142 | locale. The value of the variable @code{w32-unicode-filenames} | ||
| 1143 | controls whether Emacs uses the Unicode APIs when it calls OS | ||
| 1144 | functions that accept file names. This variable is set by the startup | ||
| 1145 | code to @code{nil} on Windows 9X, and to @code{t} on newer versions of | ||
| 1146 | MS-Windows. | ||
| 1147 | |||
| 1133 | @strong{Warning:} if you change @code{file-name-coding-system} (or the | 1148 | @strong{Warning:} if you change @code{file-name-coding-system} (or the |
| 1134 | language environment) in the middle of an Emacs session, problems can | 1149 | language environment) in the middle of an Emacs session, problems can |
| 1135 | result if you have already visited files whose names were encoded using | 1150 | result if you have already visited files whose names were encoded using |
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 96adb629f37..4132c1f8de0 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -1108,6 +1108,16 @@ visited file name, saving may use the wrong file name, or it may get | |||
| 1108 | an error. If such a problem happens, use @kbd{C-x C-w} to specify a | 1108 | an error. If such a problem happens, use @kbd{C-x C-w} to specify a |
| 1109 | new file name for that buffer. | 1109 | new file name for that buffer. |
| 1110 | 1110 | ||
| 1111 | @cindex file-name encoding, MS-Windows | ||
| 1112 | On Windows 2000 and later, Emacs by default uses Unicode APIs to | ||
| 1113 | pass file names to the OS, so the value of | ||
| 1114 | @code{file-name-coding-system} is largely ignored. Lisp applications | ||
| 1115 | that need to encode or decode file names on the Lisp level should use | ||
| 1116 | @code{utf-8} coding-system when @code{system-type} is | ||
| 1117 | @code{windows-nt}; the conversion of UTF-8 encoded file names to the | ||
| 1118 | encoding appropriate for communicating with the OS is performed | ||
| 1119 | internally by Emacs. | ||
| 1120 | |||
| 1111 | @node Lisp and Coding Systems | 1121 | @node Lisp and Coding Systems |
| 1112 | @subsection Coding Systems in Lisp | 1122 | @subsection Coding Systems in Lisp |
| 1113 | 1123 | ||
| @@ -931,6 +931,14 @@ directories and will find the files in there automatically; there's no | |||
| 931 | need to set any variables due to this change.) | 931 | need to set any variables due to this change.) |
| 932 | 932 | ||
| 933 | +++ | 933 | +++ |
| 934 | ** Emacs on Windows 2000 and later can now access files and directories | ||
| 935 | whose names cannot be encoded in the current system codepage. | ||
| 936 | |||
| 937 | The new variable `w32-unicode-filenames' controls this feature: if it | ||
| 938 | is t, Emacs uses Unicode APIs to pass file names to system calls, | ||
| 939 | which lifts the limitation of file names to the current locale. | ||
| 940 | |||
| 941 | +++ | ||
| 934 | ** The "generate a backtrace on fatal error" feature now works on MS Windows. | 942 | ** The "generate a backtrace on fatal error" feature now works on MS Windows. |
| 935 | The backtrace is written to the 'emacs_backtrace.txt' file in the | 943 | The backtrace is written to the 'emacs_backtrace.txt' file in the |
| 936 | directory where Emacs was running. | 944 | directory where Emacs was running. |
diff --git a/src/fileio.c b/src/fileio.c index e5347ce765a..a98ed6b9fa5 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5849,7 +5849,10 @@ syms_of_fileio (void) | |||
| 5849 | 5849 | ||
| 5850 | DEFVAR_LISP ("file-name-coding-system", Vfile_name_coding_system, | 5850 | DEFVAR_LISP ("file-name-coding-system", Vfile_name_coding_system, |
| 5851 | doc: /* Coding system for encoding file names. | 5851 | doc: /* Coding system for encoding file names. |
| 5852 | If it is nil, `default-file-name-coding-system' (which see) is used. */); | 5852 | If it is nil, `default-file-name-coding-system' (which see) is used. |
| 5853 | |||
| 5854 | On MS-Windows, the value of this variable is largely ignored if | ||
| 5855 | \`w32-unicode-filenames' (which see) is non-nil. */); | ||
| 5853 | Vfile_name_coding_system = Qnil; | 5856 | Vfile_name_coding_system = Qnil; |
| 5854 | 5857 | ||
| 5855 | DEFVAR_LISP ("default-file-name-coding-system", | 5858 | DEFVAR_LISP ("default-file-name-coding-system", |
| @@ -5860,7 +5863,10 @@ This variable is used only when `file-name-coding-system' is nil. | |||
| 5860 | This variable is set/changed by the command `set-language-environment'. | 5863 | This variable is set/changed by the command `set-language-environment'. |
| 5861 | User should not set this variable manually, | 5864 | User should not set this variable manually, |
| 5862 | instead use `file-name-coding-system' to get a constant encoding | 5865 | instead use `file-name-coding-system' to get a constant encoding |
| 5863 | of file names regardless of the current language environment. */); | 5866 | of file names regardless of the current language environment. |
| 5867 | |||
| 5868 | On MS-Windows, the value of this variable is largely ignored if | ||
| 5869 | \`w32-unicode-filenames' (which see) is non-nil. */); | ||
| 5864 | Vdefault_file_name_coding_system = Qnil; | 5870 | Vdefault_file_name_coding_system = Qnil; |
| 5865 | 5871 | ||
| 5866 | DEFSYM (Qformat_decode, "format-decode"); | 5872 | DEFSYM (Qformat_decode, "format-decode"); |