summaryrefslogtreecommitdiff
path: root/devdocs/elisp/character-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/character-motion.html
new repository
Diffstat (limited to 'devdocs/elisp/character-motion.html')
-rw-r--r--devdocs/elisp/character-motion.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/devdocs/elisp/character-motion.html b/devdocs/elisp/character-motion.html
new file mode 100644
index 00000000..1f6a010b
--- /dev/null
+++ b/devdocs/elisp/character-motion.html
@@ -0,0 +1,16 @@
+ <h4 class="subsection">Motion by Characters</h4> <p>These functions move point based on a count of characters. <code>goto-char</code> is the fundamental primitive; the other functions use that. </p> <dl> <dt id="goto-char">Command: <strong>goto-char</strong> <em>position</em>
+</dt> <dd>
+<p>This function sets point in the current buffer to the value <var>position</var>. </p> <p>If narrowing is in effect, <var>position</var> still counts from the beginning of the buffer, but point cannot go outside the accessible portion. If <var>position</var> is out of range, <code>goto-char</code> moves point to the beginning or the end of the accessible portion. </p> <p>When this function is called interactively, <var>position</var> is the numeric prefix argument, if provided; otherwise it is read from the minibuffer. </p> <p><code>goto-char</code> returns <var>position</var>. </p>
+</dd>
+</dl> <dl> <dt id="forward-char">Command: <strong>forward-char</strong> <em>&amp;optional count</em>
+</dt> <dd>
+<p>This function moves point <var>count</var> characters forward, towards the end of the buffer (or backward, towards the beginning of the buffer, if <var>count</var> is negative). If <var>count</var> is <code>nil</code>, the default is 1. </p> <p>If this attempts to move past the beginning or end of the buffer (or the limits of the accessible portion, when narrowing is in effect), it signals an error with error symbol <code>beginning-of-buffer</code> or <code>end-of-buffer</code>. </p> <p>In an interactive call, <var>count</var> is the numeric prefix argument. </p>
+</dd>
+</dl> <dl> <dt id="backward-char">Command: <strong>backward-char</strong> <em>&amp;optional count</em>
+</dt> <dd><p>This is just like <code>forward-char</code> except that it moves in the opposite direction. </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/Character-Motion.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Character-Motion.html</a>
+ </p>
+</div>