aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-08-25 03:03:27 +0000
committerGlenn Morris2009-08-25 03:03:27 +0000
commit7bfd055df9e2fd70dc002e6ba26c6a56e02df6de (patch)
tree027fe827d40095cd1266aed558b36bfc377e76ee
parent0706c025672b03ae8a2d646c9bd25a8edaaa695f (diff)
downloademacs-7bfd055df9e2fd70dc002e6ba26c6a56e02df6de.tar.gz
emacs-7bfd055df9e2fd70dc002e6ba26c6a56e02df6de.zip
(format-alist): Doc fix.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/format.el11
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 231b1d9c5fc..55949d43889 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-08-25 Glenn Morris <rgm@gnu.org>
2
3 * format.el (format-alist): Doc fix.
4
12009-08-24 Dmitry Dzhus <dima@sphinx.net.ru> 52009-08-24 Dmitry Dzhus <dima@sphinx.net.ru>
2 6
3 * progmodes/gdb-mi.el (gdb-mapcar*): Replacement for `mapcar*' 7 * progmodes/gdb-mi.el (gdb-mapcar*): Replacement for `mapcar*'
diff --git a/lisp/format.el b/lisp/format.el
index 27253a2c47d..3add7bab121 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -1,7 +1,7 @@
1;;; format.el --- read and save files in multiple formats 1;;; format.el --- read and save files in multiple formats
2 2
3;; Copyright (C) 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 2005,
4;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 5
6;; Author: Boris Goldowsky <boris@gnu.org> 6;; Author: Boris Goldowsky <boris@gnu.org>
7 7
@@ -106,9 +106,9 @@ DOC-STR should be a single line providing more information about the
106 the user if they ask for more information. 106 the user if they ask for more information.
107 107
108REGEXP is a regular expression to match against the beginning of the file; 108REGEXP is a regular expression to match against the beginning of the file;
109 it should match only files in that format. Use nil to avoid 109 it should match only files in that format. REGEXP may be nil, in
110 matching at all for formats for which it isn't appropriate to 110 which case the format will never be applied automatically to a file.
111 require explicit encoding/decoding. 111 Use this for formats that you only ever want to apply manually.
112 112
113FROM-FN is called to decode files in that format; it takes two args, BEGIN 113FROM-FN is called to decode files in that format; it takes two args, BEGIN
114 and END, and can make any modifications it likes, returning the new 114 and END, and can make any modifications it likes, returning the new
@@ -136,6 +136,7 @@ MODE-FN, if specified, is called when visiting a file with that format.
136 136
137PRESERVE, if non-nil, means that `format-write-file' should not remove 137PRESERVE, if non-nil, means that `format-write-file' should not remove
138 this format from `buffer-file-format'.") 138 this format from `buffer-file-format'.")
139;;;###autoload(put 'format-alist 'risky-local-variable t)
139 140
140;;; Basic Functions (called from Lisp) 141;;; Basic Functions (called from Lisp)
141 142