blob: 96d29fd96ec506278056aca710208d30ed55bb80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<h3 class="section">Motion and Syntax</h3> <p>This section describes functions for moving across characters that have certain syntax classes. </p> <dl> <dt id="skip-syntax-forward">Function: <strong>skip-syntax-forward</strong> <em>syntaxes &optional limit</em>
</dt> <dd>
<p>This function moves point forward across characters having syntax classes mentioned in <var>syntaxes</var> (a string of syntax class characters). It stops when it encounters the end of the buffer, or position <var>limit</var> (if specified), or a character it is not supposed to skip. </p> <p>If <var>syntaxes</var> starts with ‘<samp>^</samp>’, then the function skips characters whose syntax is <em>not</em> in <var>syntaxes</var>. </p> <p>The return value is the distance traveled, which is a nonnegative integer. </p>
</dd>
</dl> <dl> <dt id="skip-syntax-backward">Function: <strong>skip-syntax-backward</strong> <em>syntaxes &optional limit</em>
</dt> <dd>
<p>This function moves point backward across characters whose syntax classes are mentioned in <var>syntaxes</var>. It stops when it encounters the beginning of the buffer, or position <var>limit</var> (if specified), or a character it is not supposed to skip. </p> <p>If <var>syntaxes</var> starts with ‘<samp>^</samp>’, then the function skips characters whose syntax is <em>not</em> in <var>syntaxes</var>. </p> <p>The return value indicates the distance traveled. It is an integer that is zero or less. </p>
</dd>
</dl> <dl> <dt id="backward-prefix-chars">Function: <strong>backward-prefix-chars</strong>
</dt> <dd><p>This function moves point backward over any number of characters with expression prefix syntax. This includes both characters in the expression prefix syntax class, and characters with the ‘<samp>p</samp>’ flag. </p></dd>
</dl><div class="_attribution">
<p class="_attribution-p">
Copyright © 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/Motion-and-Syntax.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Motion-and-Syntax.html</a>
</p>
</div>
|