summaryrefslogtreecommitdiff
path: root/devdocs/elisp/buffer-end-motion.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/buffer-end-motion.html
new repository
Diffstat (limited to 'devdocs/elisp/buffer-end-motion.html')
-rw-r--r--devdocs/elisp/buffer-end-motion.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/devdocs/elisp/buffer-end-motion.html b/devdocs/elisp/buffer-end-motion.html
new file mode 100644
index 00000000..725c23b9
--- /dev/null
+++ b/devdocs/elisp/buffer-end-motion.html
@@ -0,0 +1,18 @@
+ <h4 class="subsection">Motion to an End of the Buffer</h4> <p>To move point to the beginning of the buffer, write: </p> <div class="example"> <pre class="example">(goto-char (point-min))
+</pre>
+</div> <p>Likewise, to move to the end of the buffer, use: </p> <div class="example"> <pre class="example">(goto-char (point-max))
+</pre>
+</div> <p>Here are two commands that users use to do these things. They are documented here to warn you not to use them in Lisp programs, because they set the mark and display messages in the echo area. </p> <dl> <dt id="beginning-of-buffer">Command: <strong>beginning-of-buffer</strong> <em>&amp;optional n</em>
+</dt> <dd>
+<p>This function moves point to the beginning of the buffer (or the limits of the accessible portion, when narrowing is in effect), setting the mark at the previous position (except in Transient Mark mode, if the mark is already active, it does not set the mark.) </p> <p>If <var>n</var> is non-<code>nil</code>, then it puts point <var>n</var> tenths of the way from the beginning of the accessible portion of the buffer. In an interactive call, <var>n</var> is the numeric prefix argument, if provided; otherwise <var>n</var> defaults to <code>nil</code>. </p> <p><strong>Warning:</strong> Don’t use this function in Lisp programs! </p>
+</dd>
+</dl> <dl> <dt id="end-of-buffer">Command: <strong>end-of-buffer</strong> <em>&amp;optional n</em>
+</dt> <dd>
+<p>This function moves point to the end of the buffer (or the limits of the accessible portion, when narrowing is in effect), setting the mark at the previous position (except in Transient Mark mode when the mark is already active). If <var>n</var> is non-<code>nil</code>, then it puts point <var>n</var> tenths of the way from the end of the accessible portion of the buffer. </p> <p>In an interactive call, <var>n</var> is the numeric prefix argument, if provided; otherwise <var>n</var> defaults to <code>nil</code>. </p> <p><strong>Warning:</strong> Don’t use this function in Lisp programs! </p>
+</dd>
+</dl><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-End-Motion.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Buffer-End-Motion.html</a>
+ </p>
+</div>