summaryrefslogtreecommitdiff
path: root/devdocs/elisp/format-conversion.html
blob: 6c2345ad0f6fa94d60cde1c106f0cc574a30e7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 <h3 class="section">File Format Conversion</h3>      <p>Emacs performs several steps to convert the data in a buffer (text, text properties, and possibly other information) to and from a representation suitable for storing into a file. This section describes the fundamental functions that perform this <em>format conversion</em>, namely <code>insert-file-contents</code> for reading a file into a buffer, and <code>write-region</code> for writing a buffer into a file. </p> <table class="menu" border="0" cellspacing="0"> <tr>
<td align="left" valign="top">• <a href="format-conversion-overview" accesskey="1">Overview</a>
</td>
<td> </td>
<td align="left" valign="top">
<code>insert-file-contents</code> and <code>write-region</code>. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="format-conversion-round_002dtrip" accesskey="2">Round-Trip</a>
</td>
<td> </td>
<td align="left" valign="top">Using <code>format-alist</code>. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="format-conversion-piecemeal" accesskey="3">Piecemeal</a>
</td>
<td> </td>
<td align="left" valign="top">Specifying non-paired conversion. </td>
</tr> </table><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
    <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Format-Conversion.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Format-Conversion.html</a>
  </p>
</div>