aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-15 20:30:32 +0000
committerRichard M. Stallman2002-08-15 20:30:32 +0000
commit201e6b46dcc80953f9097bc4a3a31457367d8ffb (patch)
tree9cf6c7cfd3b7b45f8b788a1cc79bbaf58751361d
parent4bdc86e7dff3d62275dd25606af344e77d059d16 (diff)
downloademacs-201e6b46dcc80953f9097bc4a3a31457367d8ffb.tar.gz
emacs-201e6b46dcc80953f9097bc4a3a31457367d8ffb.zip
Explain how C-x RET f and C-x RET c affect saving.
-rw-r--r--man/mule.texi36
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}
899Use coding system @var{coding} for the visited file 899Use coding system @var{coding} for saving or revisiting the visited
900in the current buffer. 900file 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}
903Specify coding system @var{coding} for the immediately following 903Specify 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}
928specifies the file coding system for the current buffer---in other 928(@code{set-buffer-file-coding-system}) sets the file coding system for
929words, which coding system to use when saving or rereading the visited 929the current buffer---in other words, it says which coding system to
930file. You specify which coding system using the minibuffer. Since this 930use when saving or reverting the visited file. You specify which
931command applies to a file you have already visited, it affects only the 931coding system using the minibuffer. If you specify a coding system
932way the file is saved. 932that cannot handle all of the characters in the buffer, Emacs warns
933you about the troublesome characters when you actually save the
934buffer.
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,
944it reads the file using that coding system (and records the coding 946it reads the file using that coding system (and records the coding
945system for when the file is saved). Or if the immediately following 947system for when you later save the file). Or if the immediately following
946command is @kbd{C-x C-w}, it writes the file using that coding system. 948command is @kbd{C-x C-w}, it writes the file using that coding system.
947Other file commands affected by a specified coding system include 949When 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 950of with @kbd{C-x @key{RET} f}, there is no warning if the buffer
949@kbd{C-x C-f}. 951contains 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
952including @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
955of @kbd{C-x C-f}. @kbd{C-x @key{RET} c} also affects commands that
956start 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,
955system, then @kbd{C-x @key{RET} c} ultimately has no effect. 959then @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
958find-file-literally} command. @xref{Visiting}. 962find-file-literally} command. @xref{Visiting}.