Mercurial > emacs
comparison man/mule.texi @ 61052:f49b6692433d
(Specify Coding): Document recode-region and recode-file-name.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 28 Mar 2005 21:07:34 +0000 |
parents | 3d8f9fc6a5e8 |
children | 25e118545445 |
comparison
equal
deleted
inserted
replaced
61051:a45405053cb1 | 61052:f49b6692433d |
---|---|
926 files. | 926 files. |
927 | 927 |
928 @item C-x @key{RET} X @var{coding} @key{RET} | 928 @item C-x @key{RET} X @var{coding} @key{RET} |
929 Use coding system @var{coding} for transferring @emph{one} | 929 Use coding system @var{coding} for transferring @emph{one} |
930 selection---the next one---to or from the window system. | 930 selection---the next one---to or from the window system. |
931 | |
932 @item M-x recode-region | |
933 Convert the region from a previous coding system to a new one. | |
931 @end table | 934 @end table |
932 | 935 |
933 @kindex C-x RET f | 936 @kindex C-x RET f |
934 @findex set-buffer-file-coding-system | 937 @findex set-buffer-file-coding-system |
935 The command @kbd{C-x @key{RET} f} | 938 The command @kbd{C-x @key{RET} f} |
1053 and from a particular subprocess by giving the command in the | 1056 and from a particular subprocess by giving the command in the |
1054 corresponding buffer. | 1057 corresponding buffer. |
1055 | 1058 |
1056 The default for translation of process input and output depends on the | 1059 The default for translation of process input and output depends on the |
1057 current language environment. | 1060 current language environment. |
1061 | |
1062 @findex recode-region | |
1063 If a piece of text has already been inserted into a buffer using the | |
1064 wrong coding system, you can decode it again using @kbd{M-x | |
1065 recode-region}. This prompts you for the old coding system and the | |
1066 desired coding system, and acts on the text in the region. | |
1058 | 1067 |
1059 @vindex file-name-coding-system | 1068 @vindex file-name-coding-system |
1060 @cindex file names with non-@acronym{ASCII} characters | 1069 @cindex file names with non-@acronym{ASCII} characters |
1061 @findex set-file-name-coding-system | 1070 @findex set-file-name-coding-system |
1062 @kindex C-x @key{RET} F | 1071 @kindex C-x @key{RET} F |
1082 differently) under the new coding system. If you try to save one of | 1091 differently) under the new coding system. If you try to save one of |
1083 these buffers under the visited file name, saving may use the wrong file | 1092 these buffers under the visited file name, saving may use the wrong file |
1084 name, or it may get an error. If such a problem happens, use @kbd{C-x | 1093 name, or it may get an error. If such a problem happens, use @kbd{C-x |
1085 C-w} to specify a new file name for that buffer. | 1094 C-w} to specify a new file name for that buffer. |
1086 | 1095 |
1096 @findex recode-file-name | |
1097 If a mistake occurs when encoding a file name, use the command | |
1098 command @kbd{M-x recode-file-name} to change the file name's coding | |
1099 system. This prompts for an existing file name, its old coding | |
1100 system, and the coding system to which you wish to convert. | |
1101 | |
1087 @vindex locale-coding-system | 1102 @vindex locale-coding-system |
1088 @cindex decoding non-@acronym{ASCII} keyboard input on X | 1103 @cindex decoding non-@acronym{ASCII} keyboard input on X |
1089 The variable @code{locale-coding-system} specifies a coding system | 1104 The variable @code{locale-coding-system} specifies a coding system |
1090 to use when encoding and decoding system strings such as system error | 1105 to use when encoding and decoding system strings such as system error |
1091 messages and @code{format-time-string} formats and time stamps. That | 1106 messages and @code{format-time-string} formats and time stamps. That |