aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-12-02 03:40:15 +0000
committerGlenn Morris2008-12-02 03:40:15 +0000
commitfa047ae7025373f512b0fca9eb3febdcd8ae8c00 (patch)
tree65299fdf368870ec18324c52ceac97ffea3aa6e5
parent78151cd534f3dd142aa6c09e529115b7aa92f156 (diff)
downloademacs-fa047ae7025373f512b0fca9eb3febdcd8ae8c00.tar.gz
emacs-fa047ae7025373f512b0fca9eb3febdcd8ae8c00.zip
(Format Conversion Round-Trip): Rewrite format-write-file section yet again.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/files.texi22
2 files changed, 16 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index cd16218f5e5..749ead0708c 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12008-12-02 Glenn Morris <rgm@gnu.org>
2
3 * files.texi (Format Conversion Round-Trip): Rewrite format-write-file
4 section yet again.
5
12008-11-29 Eli Zaretskii <eliz@gnu.org> 62008-11-29 Eli Zaretskii <eliz@gnu.org>
2 7
3 * nonascii.texi (Character Properties): New Section. 8 * nonascii.texi (Character Properties): New Section.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 45b911fde9f..9bd882f5776 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2982,17 +2982,17 @@ encoding functions for the formats listed in @code{buffer-file-format},
2982in the order of appearance in the list. 2982in the order of appearance in the list.
2983 2983
2984@deffn Command format-write-file file format &optional confirm 2984@deffn Command format-write-file file format &optional confirm
2985This command writes the current buffer contents into the file 2985This command writes the current buffer contents into the file @var{file}
2986@var{file} in format @var{format}, and makes that format the default 2986in a format based on @var{format}, which is a list of format names. It
2987for future saves of the buffer. That is, it sets the buffer-local value 2987constructs the actual format starting from @var{format}, then appending
2988of @code{buffer-file-format} to @var{format}. It then appends any 2988any elements from the value of @code{buffer-file-format} with a non-nil
2989elements of the previous value with a non-nil @var{preserve} flag (see 2989@var{preserve} flag (see above), if they are not already present in
2990above), if they are not already present in the new value. 2990@var{format}. It then updates @code{buffer-file-format} with this
2991The argument @var{format} is a list of format names. 2991format, making it the default for future saves. Except for the
2992Except for the @var{format} argument, this command 2992@var{format} argument, this command is similar to @code{write-file}. In
2993is similar to @code{write-file}. In particular, @var{confirm} has the 2993particular, @var{confirm} has the same meaning and interactive treatment
2994same meaning and interactive treatment as the corresponding argument 2994as the corresponding argument to @code{write-file}. @xref{Definition of
2995to @code{write-file}. @xref{Definition of write-file}. 2995write-file}.
2996@end deffn 2996@end deffn
2997 2997
2998@deffn Command format-find-file file format 2998@deffn Command format-find-file file format