Mercurial > emacs
diff lisp/dos-w32.el @ 90851:31beec9ee600
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 751-770)
- Update from CVS
- Merge from emacs--rel--22
- Update from CVS: lisp/textmodes/sgml-mode.el: Revert last change.
- Merge from gnus--rel--5.10
* emacs--rel--22 (patch 18-25)
* gnus--rel--5.10 (patch 222-223)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-208
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 24 May 2007 21:31:10 +0000 |
parents | 4ef881a120fe 52935906feab |
children | f55f9811f5d7 |
line wrap: on
line diff
--- a/lisp/dos-w32.el Tue May 22 15:26:28 2007 +0000 +++ b/lisp/dos-w32.el Thu May 24 21:31:10 2007 +0000 @@ -92,7 +92,7 @@ (defun find-buffer-file-type-coding-system (command) "Choose a coding system for a file operation in COMMAND. -COMMAND is a list that specifies the operation, and I/O primitive as its +COMMAND is a list that specifies the operation, an I/O primitive, as its CAR, and the arguments that might be given to that operation as its CDR. If operation is `insert-file-contents', the coding system is chosen based upon the filename (the CAR of the arguments beyond the operation), the contents @@ -109,6 +109,10 @@ If the file exists: `undecided' If the file does not exist: default-buffer-file-coding-system +Note that the CAR of arguments to `insert-file-contents' operation could +be a cons cell of the form \(FILENAME . BUFFER\), where BUFFER is a buffer +into which the file's contents were already read, but not yet decoded. + If operation is `write-region', the coding system is chosen based upon the value of `buffer-file-coding-system' and `buffer-file-type'. If `buffer-file-coding-system' is non-nil, its value is used. If it is