Mercurial > emacs
comparison lispref/nonascii.texi @ 90813:e6fdae9180d4
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 698-710)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 216)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 24 Apr 2007 21:56:25 +0000 |
parents | 4ef881a120fe 4d7a5d9bbe76 |
children | 988f1edc9674 |
comparison
equal
deleted
inserted
replaced
90812:6137cc8ddf90 | 90813:e6fdae9180d4 |
---|---|
1103 The first element, @var{decoding-system}, is the coding system to use | 1103 The first element, @var{decoding-system}, is the coding system to use |
1104 for decoding (in case @var{operation} does decoding), and | 1104 for decoding (in case @var{operation} does decoding), and |
1105 @var{encoding-system} is the coding system for encoding (in case | 1105 @var{encoding-system} is the coding system for encoding (in case |
1106 @var{operation} does encoding). | 1106 @var{operation} does encoding). |
1107 | 1107 |
1108 The argument @var{operation} should be a symbol, any one of | 1108 The argument @var{operation} is a symbol, one of @code{write-region}, |
1109 @code{insert-file-contents}, @code{write-region}, | |
1110 @code{start-process}, @code{call-process}, @code{call-process-region}, | 1109 @code{start-process}, @code{call-process}, @code{call-process-region}, |
1111 or @code{open-network-stream}. These are the names of the Emacs I/O | 1110 @code{insert-file-contents}, or @code{open-network-stream}. These are |
1112 primitives that can do character code and eol conversion. | 1111 the names of the Emacs I/O primitives that can do character code and |
1112 eol conversion. | |
1113 | 1113 |
1114 The remaining arguments should be the same arguments that might be given | 1114 The remaining arguments should be the same arguments that might be given |
1115 to the corresponding I/O primitive. Depending on the primitive, one | 1115 to the corresponding I/O primitive. Depending on the primitive, one |
1116 of those arguments is selected as the @dfn{target}. For example, if | 1116 of those arguments is selected as the @dfn{target}. For example, if |
1117 @var{operation} does file I/O, whichever argument specifies the file | 1117 @var{operation} does file I/O, whichever argument specifies the file |
1163 ;; @r{Assume @acronym{crlf} represents end-of-line.} | 1163 ;; @r{Assume @acronym{crlf} represents end-of-line.} |
1164 (let ((coding-system-for-read 'emacs-mule-dos)) | 1164 (let ((coding-system-for-read 'emacs-mule-dos)) |
1165 (insert-file-contents filename)) | 1165 (insert-file-contents filename)) |
1166 @end example | 1166 @end example |
1167 | 1167 |
1168 When its value is non-@code{nil}, @code{coding-system-for-read} takes | 1168 When its value is non-@code{nil}, this variable takes precedence over |
1169 precedence over all other methods of specifying a coding system to use for | 1169 all other methods of specifying a coding system to use for input, |
1170 input, including @code{file-coding-system-alist}, | 1170 including @code{file-coding-system-alist}, |
1171 @code{process-coding-system-alist} and | 1171 @code{process-coding-system-alist} and |
1172 @code{network-coding-system-alist}. | 1172 @code{network-coding-system-alist}. |
1173 @end defvar | 1173 @end defvar |
1174 | 1174 |
1175 @defvar coding-system-for-write | 1175 @defvar coding-system-for-write |