1 |
@c -*-texinfo-*- |
@c -*-texinfo-*- |
2 |
@c This is part of the GNU Emacs Lisp Reference Manual. |
@c This is part of the GNU Emacs Lisp Reference Manual. |
3 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 |
4 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
5 |
@c See the file elisp.texi for copying conditions. |
@c See the file elisp.texi for copying conditions. |
6 |
@setfilename ../info/positions |
@setfilename ../info/positions |
7 |
@node Positions, Markers, Frames, Top |
@node Positions, Markers, Frames, Top |
21 |
surrounding characters. @xref{Markers}. |
surrounding characters. @xref{Markers}. |
22 |
|
|
23 |
See also the ``field'' feature (@pxref{Fields}), which provides |
See also the ``field'' feature (@pxref{Fields}), which provides |
24 |
functions that are used by many cursur-motion commands. |
functions that are used by many cursor-motion commands. |
25 |
|
|
26 |
@menu |
@menu |
27 |
* Point:: The special position where editing takes place. |
* Point:: The special position where editing takes place. |
594 |
The return value is a list of five elements: |
The return value is a list of five elements: |
595 |
|
|
596 |
@example |
@example |
597 |
(@var{pos} @var{vpos} @var{hpos} @var{prevhpos} @var{contin}) |
(@var{pos} @var{hpos} @var{vpos} @var{prevhpos} @var{contin}) |
598 |
@end example |
@end example |
599 |
|
|
600 |
@noindent |
@noindent |
631 |
|
|
632 |
@node List Motion |
@node List Motion |
633 |
@comment node-name, next, previous, up |
@comment node-name, next, previous, up |
634 |
@subsection Moving over Balanced Expressions |
@subsection Moving over Balanced Expressions |
635 |
@cindex sexp motion |
@cindex sexp motion |
636 |
@cindex Lisp expression motion |
@cindex Lisp expression motion |
637 |
@cindex list motion |
@cindex list motion |
745 |
characters. For example, they are often used to skip whitespace. For |
characters. For example, they are often used to skip whitespace. For |
746 |
related functions, see @ref{Motion and Syntax}. |
related functions, see @ref{Motion and Syntax}. |
747 |
|
|
748 |
|
These functions convert the set string to multibyte if the buffer is |
749 |
|
multibyte, and they convert it to unibyte if the buffer is unibyte, as |
750 |
|
the search functions do (@pxref{Searching and Matching}). |
751 |
|
|
752 |
@defun skip-chars-forward character-set &optional limit |
@defun skip-chars-forward character-set &optional limit |
753 |
This function moves point in the current buffer forward, skipping over a |
This function moves point in the current buffer forward, skipping over a |
754 |
given set of characters. It examines the character following point, |
given set of characters. It examines the character following point, |
790 |
---------- Buffer: foo ---------- |
---------- Buffer: foo ---------- |
791 |
@end group |
@end group |
792 |
@end example |
@end example |
793 |
|
|
794 |
|
Note that char classes are not currently supported in |
795 |
|
@var{character-set}; they will be treated as literals. Thus you |
796 |
|
cannot use @code{"[:alpha:]"} instead of @code{"a-zA-Z"} to include |
797 |
|
non-ASCII letters. A way to skip forward over all letters is: |
798 |
|
|
799 |
|
@example |
800 |
|
(re-search-forward "\\=[[:alpha:]]*" nil t) |
801 |
|
@end example |
802 |
@end defun |
@end defun |
803 |
|
|
804 |
@defun skip-chars-backward character-set &optional limit |
@defun skip-chars-backward character-set &optional limit |