aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-05-12 17:56:34 +0000
committerEli Zaretskii2006-05-12 17:56:34 +0000
commitf055e02c4e59697e7919f17a28e96d17f1c1a510 (patch)
tree132351f146a90484ff482ae0d4697f7188965242
parent9036363b546b1868e22a9fa3826ab760a3df63a4 (diff)
downloademacs-f055e02c4e59697e7919f17a28e96d17f1c1a510.tar.gz
emacs-f055e02c4e59697e7919f17a28e96d17f1c1a510.zip
(Visiting Functions, Reading from Files, Saving Buffers): Mention code and EOL
conversions by file I/O primitives and subroutines.
-rw-r--r--lispref/ChangeLog4
-rw-r--r--lispref/files.texi18
2 files changed, 16 insertions, 6 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 1c5d21ffb8b..7b18e8457c4 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,5 +1,9 @@
12006-05-12 Eli Zaretskii <eliz@gnu.org> 12006-05-12 Eli Zaretskii <eliz@gnu.org>
2 2
3 * files.texi (Visiting Functions, Reading from Files)
4 (Saving Buffers): Mention code and EOL conversions by file I/O
5 primitives and subroutines.
6
3 * nonascii.texi (Lisp and Coding Systems): Document 7 * nonascii.texi (Lisp and Coding Systems): Document
4 coding-system-eol-type. Add index entries for eol conversion. 8 coding-system-eol-type. Add index entries for eol conversion.
5 9
diff --git a/lispref/files.texi b/lispref/files.texi
index 8a566f62ee0..d23b5efdd67 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -136,6 +136,10 @@ example, if it needs to create a buffer, and there is no file named
136@var{filename}, it displays the message @samp{(New file)} in the echo 136@var{filename}, it displays the message @samp{(New file)} in the echo
137area, and leaves the buffer empty. 137area, and leaves the buffer empty.
138 138
139Reading the file(s) into their respective buffers involves decoding
140the files' contents (@pxref{Coding Systems}), including end-of-line
141conversion.
142
139The @code{find-file-noselect} function normally calls 143The @code{find-file-noselect} function normally calls
140@code{after-find-file} after reading the file (@pxref{Subroutines of 144@code{after-find-file} after reading the file (@pxref{Subroutines of
141Visiting}). That function sets the buffer major mode, parses local 145Visiting}). That function sets the buffer major mode, parses local
@@ -395,11 +399,12 @@ You might wish to save the file modes value returned by
395bits of the file that you write. This is what @code{save-buffer} 399bits of the file that you write. This is what @code{save-buffer}
396normally does. @xref{Making Backups,, Making Backup Files}. 400normally does. @xref{Making Backups,, Making Backup Files}.
397 401
398The hook functions in @code{write-file-functions} are also responsible for 402The hook functions in @code{write-file-functions} are also responsible
399encoding the data (if desired): they must choose a suitable coding 403for encoding the data (if desired): they must choose a suitable coding
400system (@pxref{Lisp and Coding Systems}), perform the encoding 404system and end-of-line conversion (@pxref{Lisp and Coding Systems}),
401(@pxref{Explicit Encoding}), and set @code{last-coding-system-used} to 405perform the encoding (@pxref{Explicit Encoding}), and set
402the coding system that was used (@pxref{Encoding and I/O}). 406@code{last-coding-system-used} to the coding system that was used
407(@pxref{Encoding and I/O}).
403 408
404If you set this hook locally in a buffer, it is assumed to be 409If you set this hook locally in a buffer, it is assumed to be
405associated with the file or the way the contents of the buffer were 410associated with the file or the way the contents of the buffer were
@@ -496,7 +501,8 @@ appropriate. @xref{Format Conversion}. It also calls the functions in
496the list @code{after-insert-file-functions}; see @ref{Saving 501the list @code{after-insert-file-functions}; see @ref{Saving
497Properties}. Normally, one of the functions in the 502Properties}. Normally, one of the functions in the
498@code{after-insert-file-functions} list determines the coding system 503@code{after-insert-file-functions} list determines the coding system
499(@pxref{Coding Systems}) used for decoding the file's contents. 504(@pxref{Coding Systems}) used for decoding the file's contents,
505including end-of-line conversion.
500 506
501If @var{visit} is non-@code{nil}, this function additionally marks the 507If @var{visit} is non-@code{nil}, this function additionally marks the
502buffer as unmodified and sets up various fields in the buffer so that it 508buffer as unmodified and sets up various fields in the buffer so that it