diff options
| author | Richard M. Stallman | 2002-08-15 20:30:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-15 20:30:32 +0000 |
| commit | 201e6b46dcc80953f9097bc4a3a31457367d8ffb (patch) | |
| tree | 9cf6c7cfd3b7b45f8b788a1cc79bbaf58751361d | |
| parent | 4bdc86e7dff3d62275dd25606af344e77d059d16 (diff) | |
| download | emacs-201e6b46dcc80953f9097bc4a3a31457367d8ffb.tar.gz emacs-201e6b46dcc80953f9097bc4a3a31457367d8ffb.zip | |
Explain how C-x RET f and C-x RET c affect saving.
| -rw-r--r-- | man/mule.texi | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/man/mule.texi b/man/mule.texi index 06bb9617166..6c401417703 100644 --- a/man/mule.texi +++ b/man/mule.texi | |||
| @@ -896,8 +896,8 @@ system, you can use these commands to specify one: | |||
| 896 | 896 | ||
| 897 | @table @kbd | 897 | @table @kbd |
| 898 | @item C-x @key{RET} f @var{coding} @key{RET} | 898 | @item C-x @key{RET} f @var{coding} @key{RET} |
| 899 | Use coding system @var{coding} for the visited file | 899 | Use coding system @var{coding} for saving or revisiting the visited |
| 900 | in the current buffer. | 900 | file in the current buffer. |
| 901 | 901 | ||
| 902 | @item C-x @key{RET} c @var{coding} @key{RET} | 902 | @item C-x @key{RET} c @var{coding} @key{RET} |
| 903 | Specify coding system @var{coding} for the immediately following | 903 | Specify coding system @var{coding} for the immediately following |
| @@ -924,12 +924,14 @@ selection---the next one---to or from the window system. | |||
| 924 | 924 | ||
| 925 | @kindex C-x RET f | 925 | @kindex C-x RET f |
| 926 | @findex set-buffer-file-coding-system | 926 | @findex set-buffer-file-coding-system |
| 927 | The command @kbd{C-x @key{RET} f} (@code{set-buffer-file-coding-system}) | 927 | The command @kbd{C-x @key{RET} f} |
| 928 | specifies the file coding system for the current buffer---in other | 928 | (@code{set-buffer-file-coding-system}) sets the file coding system for |
| 929 | words, which coding system to use when saving or rereading the visited | 929 | the current buffer---in other words, it says which coding system to |
| 930 | file. You specify which coding system using the minibuffer. Since this | 930 | use when saving or reverting the visited file. You specify which |
| 931 | command applies to a file you have already visited, it affects only the | 931 | coding system using the minibuffer. If you specify a coding system |
| 932 | way the file is saved. | 932 | that cannot handle all of the characters in the buffer, Emacs warns |
| 933 | you about the troublesome characters when you actually save the | ||
| 934 | buffer. | ||
| 933 | 935 | ||
| 934 | @kindex C-x RET c | 936 | @kindex C-x RET c |
| 935 | @findex universal-coding-system-argument | 937 | @findex universal-coding-system-argument |
| @@ -942,17 +944,19 @@ command}. | |||
| 942 | 944 | ||
| 943 | So if the immediately following command is @kbd{C-x C-f}, for example, | 945 | So if the immediately following command is @kbd{C-x C-f}, for example, |
| 944 | it reads the file using that coding system (and records the coding | 946 | it reads the file using that coding system (and records the coding |
| 945 | system for when the file is saved). Or if the immediately following | 947 | system for when you later save the file). Or if the immediately following |
| 946 | command is @kbd{C-x C-w}, it writes the file using that coding system. | 948 | command is @kbd{C-x C-w}, it writes the file using that coding system. |
| 947 | Other file commands affected by a specified coding system include | 949 | When you specify the coding system for saving in this way, instead |
| 948 | @kbd{C-x C-i} and @kbd{C-x C-v}, as well as the other-window variants of | 950 | of with @kbd{C-x @key{RET} f}, there is no warning if the buffer |
| 949 | @kbd{C-x C-f}. | 951 | contains characters that the coding system cannot handle. |
| 950 | 952 | ||
| 951 | @kbd{C-x @key{RET} c} also affects commands that start subprocesses, | 953 | Other file commands affected by a specified coding system include |
| 952 | including @kbd{M-x shell} (@pxref{Shell}). | 954 | @kbd{C-x C-i} and @kbd{C-x C-v}, as well as the other-window variants |
| 955 | of @kbd{C-x C-f}. @kbd{C-x @key{RET} c} also affects commands that | ||
| 956 | start subprocesses, including @kbd{M-x shell} (@pxref{Shell}). | ||
| 953 | 957 | ||
| 954 | However, if the immediately following command does not use the coding | 958 | If the immediately following command does not use the coding system, |
| 955 | system, then @kbd{C-x @key{RET} c} ultimately has no effect. | 959 | then @kbd{C-x @key{RET} c} ultimately has no effect. |
| 956 | 960 | ||
| 957 | An easy way to visit a file with no conversion is with the @kbd{M-x | 961 | An easy way to visit a file with no conversion is with the @kbd{M-x |
| 958 | find-file-literally} command. @xref{Visiting}. | 962 | find-file-literally} command. @xref{Visiting}. |