diff options
| author | Dave Love <fx@gnu.org> | 2003-01-31 16:28:28 +0000 |
|---|---|---|
| committer | Dave Love <fx@gnu.org> | 2003-01-31 16:28:28 +0000 |
| commit | 6d29587b1a00c1f57a562db62107b5e96be1e689 (patch) | |
| tree | 5d57b4adb4b174fb907e0dfd43a1d2d01abf00b5 | |
| parent | b222e4153cff00bee8d20e52996891a4a52d80c0 (diff) | |
| download | emacs-6d29587b1a00c1f57a562db62107b5e96be1e689.tar.gz | |
(Skipping Characters): Multibyte conversion and
char classes in skip-chars-forward.
| -rw-r--r-- | lispref/positions.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lispref/positions.texi b/lispref/positions.texi index 0bb3a0ce76f..6b9d10e519d 100644 --- a/lispref/positions.texi +++ b/lispref/positions.texi @@ -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 |
