]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-buffer-file-type-coding-system): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Tue, 22 May 2007 11:24:50 +0000 (11:24 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 22 May 2007 11:24:50 +0000 (11:24 +0000)
lisp/ChangeLog
lisp/dos-w32.el

index 72e0d260606761fb126b805ae3788055b66e555d..2ec6ae659e9b035dcf73c849f12e026de630be93 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * dos-w32.el (find-buffer-file-type-coding-system): Doc fix.
+
 2007-05-22  Juanma Barranquero  <lekktu@gmail.com>
 
        * emacs-lisp/easy-mmode.el (define-minor-mode)
index aeebb9c3d0869853ef1cce13857b478acc0459e6..b1dc399418a45bc5c8dd7e6cbd51d1fb77b0382e 100644 (file)
@@ -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