comparison lispref/positions.texi @ 58388:23dfc76d3625

(Skipping Characters): skip-chars-forward now handles char classes.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Nov 2004 03:50:38 +0000
parents 17695367365d
children b40efffdf96e
comparison
equal deleted inserted replaced
58387:961a75031ddc 58388:23dfc76d3625
794 comes back" twice. 794 comes back" twice.
795 ---------- Buffer: foo ---------- 795 ---------- Buffer: foo ----------
796 @end group 796 @end group
797 @end example 797 @end example
798 798
799 Note that char classes are not currently supported in
800 @var{character-set}; they will be treated as literals. Thus you
801 cannot use @code{"[:alpha:]"} instead of @code{"a-zA-Z"} to include
802 non-@acronym{ASCII} letters. A way to skip forward over all letters is:
803
804 @example
805 (re-search-forward "\\=[[:alpha:]]*" nil t)
806 @end example
807 @end defun
808
809 @defun skip-chars-backward character-set &optional limit 799 @defun skip-chars-backward character-set &optional limit
810 This function moves point backward, skipping characters that match 800 This function moves point backward, skipping characters that match
811 @var{character-set}, until @var{limit}. It is just like 801 @var{character-set}, until @var{limit}. It is just like
812 @code{skip-chars-forward} except for the direction of motion. 802 @code{skip-chars-forward} except for the direction of motion.
813 803