aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2004-11-08 16:55:07 +0000
committerRichard M. Stallman <[email protected]>2004-11-08 16:55:07 +0000
commit91c311a94cd18ca830d6328d0419a43a39c459a7 (patch)
tree3bcbef3195dfa91651625c6f2f8dde5a051add12 /lispref
parent18819b0f49f4bcadd4ee984699dd2a68dd9b4814 (diff)
(Syntax Table Functions): Add syntax-after.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/syntax.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/syntax.texi b/lispref/syntax.texi
index 8c95e78d00..57b0590d23 100644
--- a/lispref/syntax.texi
+++ b/lispref/syntax.texi
@@ -501,6 +501,18 @@ We use @code{string} to make it easier to see the character returned by
@code{char-syntax}.
@end defun
+@defun syntax-after pos
+This function returns a description of the syntax of the character in
+the buffer after position @var{pos}, taking account of syntax
+properties as well as the syntax table.
+
+The value is usually a syntax class character; however, if the buffer
+character has parenthesis syntax, the value is a cons cell of the form
+@code{(@var{class} . @var{match})}, where @var{class} is the syntax
+class character and @var{match} is the buffer character's matching
+parenthesis.
+@end defun
+
@defun set-syntax-table table
This function makes @var{table} the syntax table for the current buffer.
It returns @var{table}.