diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-05-22 11:21:13 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-05-22 11:21:13 +0000 |
commit | 6903229ca9233950e96d576e8e4392f26a21d268 (patch) | |
tree | 80c90c2dfcc5311b2caab3642bf76e84fc709be1 /lisp/dos-w32.el | |
parent | c81036c67774822ae30ee3fb1047511dc3356faf (diff) | |
download | emacs-6903229ca9233950e96d576e8e4392f26a21d268.tar.gz |
(find-buffer-file-type-coding-system): Doc fix.
Diffstat (limited to 'lisp/dos-w32.el')
-rw-r--r-- | lisp/dos-w32.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el index aeebb9c3d08..b1dc399418a 100644 --- a/lisp/dos-w32.el +++ b/lisp/dos-w32.el @@ -92,7 +92,7 @@ against the file name, and TYPE is nil for text, t for binary.") (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 @@ and whether the file exists: 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 |