aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-11-20 02:42:27 +0000
committerGlenn Morris2008-11-20 02:42:27 +0000
commitc249fa9c318d0fc40a98f0182759bc0e0a1fc5f5 (patch)
tree6c18fa72ba88fa7c65295cb023b2382b3953b38c
parent60afd99b0dcb661e740ec9f96340202f82f87412 (diff)
downloademacs-c249fa9c318d0fc40a98f0182759bc0e0a1fc5f5.tar.gz
emacs-c249fa9c318d0fc40a98f0182759bc0e0a1fc5f5.zip
(Format Conversion Round-Trip): Mention `preserve' element of `format-alist'.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/files.texi13
2 files changed, 15 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index e488b0020aa..3f400bc5899 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12008-11-20 Glenn Morris <rgm@gnu.org>
2
3 * files.texi (Format Conversion Round-Trip): Mention `preserve'
4 element of `format-alist'.
5
12008-11-19 Glenn Morris <rgm@gnu.org> 62008-11-19 Glenn Morris <rgm@gnu.org>
2 7
3 * doclicense.texi: Update to FDL 1.3. 8 * doclicense.texi: Update to FDL 1.3.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 58cc61108e7..3ffc2967311 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2877,7 +2877,7 @@ This list contains one format definition for each defined file format.
2877Each format definition is a list of this form: 2877Each format definition is a list of this form:
2878 2878
2879@example 2879@example
2880(@var{name} @var{doc-string} @var{regexp} @var{from-fn} @var{to-fn} @var{modify} @var{mode-fn}) 2880(@var{name} @var{doc-string} @var{regexp} @var{from-fn} @var{to-fn} @var{modify} @var{mode-fn} @var{preserve})
2881@end example 2881@end example
2882@end defvar 2882@end defvar
2883 2883
@@ -2950,6 +2950,10 @@ A flag, @code{t} if the encoding function modifies the buffer, and
2950A minor-mode function to call after visiting a file converted from this 2950A minor-mode function to call after visiting a file converted from this
2951format. The function is called with one argument, the integer 1; 2951format. The function is called with one argument, the integer 1;
2952that tells a minor-mode function to enable the mode. 2952that tells a minor-mode function to enable the mode.
2953
2954@item preserve
2955A flag, @code{t} if @code{format-write-file} should not remove this format
2956from @code{buffer-file-format}.
2953@end table 2957@end table
2954 2958
2955The function @code{insert-file-contents} automatically recognizes file 2959The function @code{insert-file-contents} automatically recognizes file
@@ -2979,8 +2983,11 @@ in the order of appearance in the list.
2979@deffn Command format-write-file file format &optional confirm 2983@deffn Command format-write-file file format &optional confirm
2980This command writes the current buffer contents into the file 2984This command writes the current buffer contents into the file
2981@var{file} in format @var{format}, and makes that format the default 2985@var{file} in format @var{format}, and makes that format the default
2982for future saves of the buffer. The argument @var{format} is a list 2986for future saves of the buffer. That is, the buffer-local value of
2983of format names. Except for the @var{format} argument, this command 2987@code{buffer-file-format} is set to @var{format}, and any original
2988elements (except any with a non-nil @var{preserve} flag; see above) are
2989replaced. The argument @var{format} is a list of format names.
2990Except for the @var{format} argument, this command
2984is similar to @code{write-file}. In particular, @var{confirm} has the 2991is similar to @code{write-file}. In particular, @var{confirm} has the
2985same meaning and interactive treatment as the corresponding argument 2992same meaning and interactive treatment as the corresponding argument
2986to @code{write-file}. @xref{Definition of write-file}. 2993to @code{write-file}. @xref{Definition of write-file}.