Mercurial > emacs
changeset 104572:aa590c490d6f
(format-alist): Doc fix.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 25 Aug 2009 03:03:27 +0000 |
parents | 904d63cfa2f3 |
children | 7690800317e8 |
files | lisp/ChangeLog lisp/format.el |
diffstat | 2 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Aug 25 03:02:09 2009 +0000 +++ b/lisp/ChangeLog Tue Aug 25 03:03:27 2009 +0000 @@ -1,3 +1,7 @@ +2009-08-25 Glenn Morris <rgm@gnu.org> + + * format.el (format-alist): Doc fix. + 2009-08-24 Dmitry Dzhus <dima@sphinx.net.ru> * progmodes/gdb-mi.el (gdb-mapcar*): Replacement for `mapcar*'
--- a/lisp/format.el Tue Aug 25 03:02:09 2009 +0000 +++ b/lisp/format.el Tue Aug 25 03:03:27 2009 +0000 @@ -1,7 +1,7 @@ ;;; format.el --- read and save files in multiple formats -;; Copyright (C) 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 2005, +;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. ;; Author: Boris Goldowsky <boris@gnu.org> @@ -106,9 +106,9 @@ the user if they ask for more information. REGEXP is a regular expression to match against the beginning of the file; - it should match only files in that format. Use nil to avoid - matching at all for formats for which it isn't appropriate to - require explicit encoding/decoding. + it should match only files in that format. REGEXP may be nil, in + which case the format will never be applied automatically to a file. + Use this for formats that you only ever want to apply manually. FROM-FN is called to decode files in that format; it takes two args, BEGIN and END, and can make any modifications it likes, returning the new @@ -136,6 +136,7 @@ PRESERVE, if non-nil, means that `format-write-file' should not remove this format from `buffer-file-format'.") +;;;###autoload(put 'format-alist 'risky-local-variable t) ;;; Basic Functions (called from Lisp)