aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-11-20 02:44:05 +0000
committerGlenn Morris2008-11-20 02:44:05 +0000
commitce44e9328ff4889cc6a9a722487798ff59d0bf66 (patch)
tree8d4bfeb13865018659cbbad939782e33be9a9f96
parent82ee74d6f5b71d9fa30a22b7accc80ae3819aa3e (diff)
downloademacs-ce44e9328ff4889cc6a9a722487798ff59d0bf66.tar.gz
emacs-ce44e9328ff4889cc6a9a722487798ff59d0bf66.zip
(format-alist, format-write-file): Doc fix.
-rw-r--r--lisp/format.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/format.el b/lisp/format.el
index b58a265dcc2..8e114c83b5b 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -96,7 +96,8 @@
96 nil 96 nil
97 iso-spanish iso-cvt-read-only t nil)) 97 iso-spanish iso-cvt-read-only t nil))
98 "List of information about understood file formats. 98 "List of information about understood file formats.
99Elements are of the form \(NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN). 99Elements are of the form
100\(NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN PRESERVE).
100 101
101NAME is a symbol, which is stored in `buffer-file-format'. 102NAME is a symbol, which is stored in `buffer-file-format'.
102 103
@@ -365,7 +366,11 @@ name as FILENAME, to write a file of the same old name in that directory.
365 366
366If optional third arg CONFIRM is non-nil, ask for confirmation before 367If optional third arg CONFIRM is non-nil, ask for confirmation before
367overwriting an existing file. Interactively, confirmation is required 368overwriting an existing file. Interactively, confirmation is required
368unless you supply a prefix argument." 369unless you supply a prefix argument.
370
371The buffer-local value of `buffer-file-format' is set to FORMAT,
372and any original elements (except those with a non-nil `preserve' flag;
373see the documentation of `format-alist') are replaced."
369 (interactive 374 (interactive
370 ;; Same interactive spec as write-file, plus format question. 375 ;; Same interactive spec as write-file, plus format question.
371 (let* ((file (if buffer-file-name 376 (let* ((file (if buffer-file-name