summaryrefslogtreecommitdiff
path: root/devdocs/elisp/buffer-text-notation.html
blob: 73b8feba882da04aad5597055f72c6a819f041d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 <h4 class="subsection">Buffer Text Notation</h4>  <p>Some examples describe modifications to the contents of a buffer, by showing the before and after versions of the text. These examples show the contents of the buffer in question between two lines of dashes containing the buffer name. In addition, ‘<samp>∗</samp>’ indicates the location of point. (The symbol for point, of course, is not part of the text in the buffer; it indicates the place <em>between</em> two characters where point is currently located.) </p> <div class="example"> <pre class="example">---------- Buffer: foo ----------
This is the ∗contents of foo.
---------- Buffer: foo ----------

(insert "changed ")
     ⇒ nil
---------- Buffer: foo ----------
This is the changed ∗contents of foo.
---------- Buffer: foo ----------
</pre>
</div><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/Buffer-Text-Notation.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Buffer-Text-Notation.html</a>
  </p>
</div>