# HG changeset patch # User Richard M. Stallman # Date 1099932907 0 # Node ID 54677602f810d5a27409f9f93ec8f4f130324c9d # Parent fcf98b0adadcf2618ce3623ad3c2e3d49b6572ac (Syntax Table Functions): Add syntax-after. diff -r fcf98b0adadc -r 54677602f810 lispref/syntax.texi --- a/lispref/syntax.texi Mon Nov 08 16:46:59 2004 +0000 +++ b/lispref/syntax.texi Mon Nov 08 16:55:07 2004 +0000 @@ -501,6 +501,18 @@ @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}.