diff options
| author | Eli Zaretskii | 2006-05-12 17:56:34 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-05-12 17:56:34 +0000 |
| commit | f055e02c4e59697e7919f17a28e96d17f1c1a510 (patch) | |
| tree | 132351f146a90484ff482ae0d4697f7188965242 | |
| parent | 9036363b546b1868e22a9fa3826ab760a3df63a4 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/files.texi | 18 |
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 @@ | |||
| 1 | 2006-05-12 Eli Zaretskii <eliz@gnu.org> | 1 | 2006-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 |
| 137 | area, and leaves the buffer empty. | 137 | area, and leaves the buffer empty. |
| 138 | 138 | ||
| 139 | Reading the file(s) into their respective buffers involves decoding | ||
| 140 | the files' contents (@pxref{Coding Systems}), including end-of-line | ||
| 141 | conversion. | ||
| 142 | |||
| 139 | The @code{find-file-noselect} function normally calls | 143 | The @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 |
| 141 | Visiting}). That function sets the buffer major mode, parses local | 145 | Visiting}). That function sets the buffer major mode, parses local |
| @@ -395,11 +399,12 @@ You might wish to save the file modes value returned by | |||
| 395 | bits of the file that you write. This is what @code{save-buffer} | 399 | bits of the file that you write. This is what @code{save-buffer} |
| 396 | normally does. @xref{Making Backups,, Making Backup Files}. | 400 | normally does. @xref{Making Backups,, Making Backup Files}. |
| 397 | 401 | ||
| 398 | The hook functions in @code{write-file-functions} are also responsible for | 402 | The hook functions in @code{write-file-functions} are also responsible |
| 399 | encoding the data (if desired): they must choose a suitable coding | 403 | for encoding the data (if desired): they must choose a suitable coding |
| 400 | system (@pxref{Lisp and Coding Systems}), perform the encoding | 404 | system and end-of-line conversion (@pxref{Lisp and Coding Systems}), |
| 401 | (@pxref{Explicit Encoding}), and set @code{last-coding-system-used} to | 405 | perform the encoding (@pxref{Explicit Encoding}), and set |
| 402 | the 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 | ||
| 404 | If you set this hook locally in a buffer, it is assumed to be | 409 | If you set this hook locally in a buffer, it is assumed to be |
| 405 | associated with the file or the way the contents of the buffer were | 410 | associated 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 | |||
| 496 | the list @code{after-insert-file-functions}; see @ref{Saving | 501 | the list @code{after-insert-file-functions}; see @ref{Saving |
| 497 | Properties}. Normally, one of the functions in the | 502 | Properties}. 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, |
| 505 | including end-of-line conversion. | ||
| 500 | 506 | ||
| 501 | If @var{visit} is non-@code{nil}, this function additionally marks the | 507 | If @var{visit} is non-@code{nil}, this function additionally marks the |
| 502 | buffer as unmodified and sets up various fields in the buffer so that it | 508 | buffer as unmodified and sets up various fields in the buffer so that it |