# HG changeset patch # User Dave Love # Date 1044030508 0 # Node ID d51a733d4b6ba1dee88afda4badf7f3805db6525 # Parent 5fc04772d0bdf92fa6e4c02d0036fc77b641e597 (Skipping Characters): Multibyte conversion and char classes in skip-chars-forward. diff -r 5fc04772d0bd -r d51a733d4b6b lispref/positions.texi --- a/lispref/positions.texi Fri Jan 31 15:39:48 2003 +0000 +++ b/lispref/positions.texi Fri Jan 31 16:28:28 2003 +0000 @@ -745,6 +745,10 @@ 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 @@ ---------- 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