diff options
| author | Richard M. Stallman | 2004-11-08 16:55:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-08 16:55:07 +0000 |
| commit | 91c311a94cd18ca830d6328d0419a43a39c459a7 (patch) | |
| tree | 3bcbef3195dfa91651625c6f2f8dde5a051add12 | |
| parent | 18819b0f49f4bcadd4ee984699dd2a68dd9b4814 (diff) | |
| download | emacs-91c311a94cd18ca830d6328d0419a43a39c459a7.tar.gz emacs-91c311a94cd18ca830d6328d0419a43a39c459a7.zip | |
(Syntax Table Functions): Add syntax-after.
| -rw-r--r-- | lispref/syntax.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/syntax.texi b/lispref/syntax.texi index 8c95e78d00c..57b0590d239 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 | |||
| 501 | @code{char-syntax}. | 501 | @code{char-syntax}. |
| 502 | @end defun | 502 | @end defun |
| 503 | 503 | ||
| 504 | @defun syntax-after pos | ||
| 505 | This function returns a description of the syntax of the character in | ||
| 506 | the buffer after position @var{pos}, taking account of syntax | ||
| 507 | properties as well as the syntax table. | ||
| 508 | |||
| 509 | The value is usually a syntax class character; however, if the buffer | ||
| 510 | character has parenthesis syntax, the value is a cons cell of the form | ||
| 511 | @code{(@var{class} . @var{match})}, where @var{class} is the syntax | ||
| 512 | class character and @var{match} is the buffer character's matching | ||
| 513 | parenthesis. | ||
| 514 | @end defun | ||
| 515 | |||
| 504 | @defun set-syntax-table table | 516 | @defun set-syntax-table table |
| 505 | This function makes @var{table} the syntax table for the current buffer. | 517 | This function makes @var{table} the syntax table for the current buffer. |
| 506 | It returns @var{table}. | 518 | It returns @var{table}. |