Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6d29587b
Commit
6d29587b
authored
Jan 31, 2003
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Skipping Characters): Multibyte conversion and
char classes in skip-chars-forward.
parent
b222e415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
lispref/positions.texi
lispref/positions.texi
+13
-0
No files found.
lispref/positions.texi
View file @
6d29587b
...
...
@@ -745,6 +745,10 @@ of using its normal method.
characters. For example, they are often used to skip whitespace. For
related functions, see @ref{Motion and Syntax}.
These functions convert the set string to multibyte if the buffer is
multibyte, and they convert it to unibyte if the buffer is unibyte, as
the search functions do (@pxref{Searching and Matching}).
@defun skip-chars-forward character-set &optional limit
This function moves point in the current buffer forward, skipping over a
given set of characters. It examines the character following point,
...
...
@@ -786,6 +790,15 @@ comes back" twice.
---------- Buffer: foo ----------
@end group
@end example
Note that char classes are not currently supported in
@var{character-set}; they will be treated as literals. Thus you
cannot use @code{"[:alpha:]"} instead of @code{"a-zA-Z"} to include
non-ASCII letters. A way to skip forward over all letters is:
@example
(re-search-forward "\\=[[:alpha:]]*" nil t)
@end example
@end defun
@defun skip-chars-backward character-set &optional limit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment