Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fa047ae7
Commit
fa047ae7
authored
Dec 02, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Format Conversion Round-Trip): Rewrite format-write-file section yet again.
parent
78151cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/files.texi
doc/lispref/files.texi
+11
-11
No files found.
doc/lispref/ChangeLog
View file @
fa047ae7
2008
-
12
-
02
Glenn
Morris
<
rgm
@
gnu
.
org
>
*
files
.
texi
(
Format
Conversion
Round
-
Trip
):
Rewrite
format
-
write
-
file
section
yet
again
.
2008
-
11
-
29
Eli
Zaretskii
<
eliz
@
gnu
.
org
>
*
nonascii
.
texi
(
Character
Properties
):
New
Section
.
...
...
doc/lispref/files.texi
View file @
fa047ae7
...
...
@@ -2982,17 +2982,17 @@ encoding functions for the formats listed in @code{buffer-file-format},
in the order of appearance in the list.
@deffn Command format-write-file file format &optional confirm
This command writes the current buffer contents into the file
@var{file} in format @var{format}, and makes that format the defaul
t
for future saves of the buffer. That is, it sets the buffer-local value
of @code{buffer-file-format}
to @var{format}. It then appends any
elements of the previous value with a non-nil @var{preserve} flag (see
above), if they are not already present in the new value.
The argument @var{format} is a list of format names.
Except for the
@var{format} argument, this command
is similar to @code{write-file}. In particular, @var{confirm} has the
same meaning and interactive treatment as the corresponding argument
to @code{write-file}. @xref{Definition of
write-file}.
This command writes the current buffer contents into the file
@var{file}
in a format based on @var{format}, which is a list of format names. I
t
constructs the actual format starting from @var{format}, then appending
any elements from the value
of @code{buffer-file-format}
with a non-nil
@var{preserve} flag (see above), if they are not already present in
@var{format}. It then updates @code{buffer-file-format} with this
format, making it the default for future saves. Except for the
@var{format} argument, this command
is similar to @code{write-file}. In
particular, @var{confirm} has the same meaning and interactive treatment
as the corresponding argument to @code{write-file}. @xref{Definition of
write-file}.
@end deffn
@deffn Command format-find-file file format
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment