diff options
| author | Glenn Morris | 2008-11-20 02:42:27 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-11-20 02:42:27 +0000 |
| commit | c249fa9c318d0fc40a98f0182759bc0e0a1fc5f5 (patch) | |
| tree | 6c18fa72ba88fa7c65295cb023b2382b3953b38c | |
| parent | 60afd99b0dcb661e740ec9f96340202f82f87412 (diff) | |
| download | emacs-c249fa9c318d0fc40a98f0182759bc0e0a1fc5f5.tar.gz emacs-c249fa9c318d0fc40a98f0182759bc0e0a1fc5f5.zip | |
(Format Conversion Round-Trip): Mention `preserve' element of `format-alist'.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 13 |
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 @@ | |||
| 1 | 2008-11-20 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (Format Conversion Round-Trip): Mention `preserve' | ||
| 4 | element of `format-alist'. | ||
| 5 | |||
| 1 | 2008-11-19 Glenn Morris <rgm@gnu.org> | 6 | 2008-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. | |||
| 2877 | Each format definition is a list of this form: | 2877 | Each 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 | |||
| 2950 | A minor-mode function to call after visiting a file converted from this | 2950 | A minor-mode function to call after visiting a file converted from this |
| 2951 | format. The function is called with one argument, the integer 1; | 2951 | format. The function is called with one argument, the integer 1; |
| 2952 | that tells a minor-mode function to enable the mode. | 2952 | that tells a minor-mode function to enable the mode. |
| 2953 | |||
| 2954 | @item preserve | ||
| 2955 | A flag, @code{t} if @code{format-write-file} should not remove this format | ||
| 2956 | from @code{buffer-file-format}. | ||
| 2953 | @end table | 2957 | @end table |
| 2954 | 2958 | ||
| 2955 | The function @code{insert-file-contents} automatically recognizes file | 2959 | The 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 |
| 2980 | This command writes the current buffer contents into the file | 2984 | This 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 |
| 2982 | for future saves of the buffer. The argument @var{format} is a list | 2986 | for future saves of the buffer. That is, the buffer-local value of |
| 2983 | of format names. Except for the @var{format} argument, this command | 2987 | @code{buffer-file-format} is set to @var{format}, and any original |
| 2988 | elements (except any with a non-nil @var{preserve} flag; see above) are | ||
| 2989 | replaced. The argument @var{format} is a list of format names. | ||
| 2990 | Except for the @var{format} argument, this command | ||
| 2984 | is similar to @code{write-file}. In particular, @var{confirm} has the | 2991 | is similar to @code{write-file}. In particular, @var{confirm} has the |
| 2985 | same meaning and interactive treatment as the corresponding argument | 2992 | same meaning and interactive treatment as the corresponding argument |
| 2986 | to @code{write-file}. @xref{Definition of write-file}. | 2993 | to @code{write-file}. @xref{Definition of write-file}. |