changeset 99737:a04373604128

(format-alist, format-write-file): Doc fix.
author Glenn Morris <rgm@gnu.org>
date Thu, 20 Nov 2008 02:44:05 +0000
parents 015fd0131c0b
children f84e322e603e
files lisp/format.el
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/format.el	Thu Nov 20 02:43:45 2008 +0000
+++ b/lisp/format.el	Thu Nov 20 02:44:05 2008 +0000
@@ -96,7 +96,8 @@
 	   nil
 	   iso-spanish iso-cvt-read-only t nil))
   "List of information about understood file formats.
-Elements are of the form \(NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN).
+Elements are of the form
+\(NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN PRESERVE).
 
 NAME    is a symbol, which is stored in `buffer-file-format'.
 
@@ -365,7 +366,11 @@
 
 If optional third arg CONFIRM is non-nil, ask for confirmation before
 overwriting an existing file.  Interactively, confirmation is required
-unless you supply a prefix argument."
+unless you supply a prefix argument.
+
+The buffer-local value of `buffer-file-format' is set to FORMAT,
+and any original elements (except those with a non-nil `preserve' flag;
+see the documentation of `format-alist') are replaced."
   (interactive
    ;; Same interactive spec as write-file, plus format question.
    (let* ((file (if buffer-file-name