diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/motion-and-syntax.html | |
new repository
Diffstat (limited to 'devdocs/elisp/motion-and-syntax.html')
| -rw-r--r-- | devdocs/elisp/motion-and-syntax.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devdocs/elisp/motion-and-syntax.html b/devdocs/elisp/motion-and-syntax.html new file mode 100644 index 00000000..96d29fd9 --- /dev/null +++ b/devdocs/elisp/motion-and-syntax.html @@ -0,0 +1,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> |
