Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
c249fa9c
Commit
c249fa9c
authored
Nov 20, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Format Conversion Round-Trip): Mention `preserve' element of `format-alist'.
parent
60afd99b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/files.texi
doc/lispref/files.texi
+10
-3
No files found.
doc/lispref/ChangeLog
View file @
c249fa9c
2008-11-20 Glenn Morris <rgm@gnu.org>
* files.texi (Format Conversion Round-Trip): Mention `preserve'
element of `format-alist'.
2008-11-19 Glenn Morris <rgm@gnu.org>
* doclicense.texi: Update to FDL 1.3.
...
...
doc/lispref/files.texi
View file @
c249fa9c
...
...
@@ -2877,7 +2877,7 @@ This list contains one format definition for each defined file format.
Each format definition is a list of this form:
@example
(@var{name} @var{doc-string} @var{regexp} @var{from-fn} @var{to-fn} @var{modify} @var{mode-fn})
(@var{name} @var{doc-string} @var{regexp} @var{from-fn} @var{to-fn} @var{modify} @var{mode-fn}
@var{preserve}
)
@end example
@end defvar
...
...
@@ -2950,6 +2950,10 @@ A flag, @code{t} if the encoding function modifies the buffer, and
A minor-mode function to call after visiting a file converted from this
format. The function is called with one argument, the integer 1;
that tells a minor-mode function to enable the mode.
@item preserve
A flag, @code{t} if @code{format-write-file} should not remove this format
from @code{buffer-file-format}.
@end table
The function @code{insert-file-contents} automatically recognizes file
...
...
@@ -2979,8 +2983,11 @@ 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 default
for future saves of the buffer. The argument @var{format} is a list
of format names. Except for the @var{format} argument, this command
for future saves of the buffer. That is, the buffer-local value of
@code{buffer-file-format} is set to @var{format}, and any original
elements (except any with a non-nil @var{preserve} flag; see above) are
replaced. 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}.
...
...
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