From 76f5242838c84bcaf5003b18a31104114930f197 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Thu, 22 Feb 2018 18:21:47 +0000 Subject: [PATCH] Document, in the Elisp manual, how to get a character's raw syntax descriptor * doc/lispref/syntax.texi (Syntax Table internals): mention the use of `aref' to get a character's raw syntax descriptor. --- doc/lispref/syntax.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi index fd461b755c0..3327d7855c4 100644 --- a/doc/lispref/syntax.texi +++ b/doc/lispref/syntax.texi @@ -972,6 +972,10 @@ encodes the syntax class and syntax flags, according to the table below. @var{matching-char}, if non-@code{nil}, specifies a matching character (similar to the second character in a syntax descriptor). +@cindex syntax tables (accessing elements of) +Use @code{aref} (@pxref{Array Functions}) to get the raw syntax +descriptor of a character, e.g. @w{@code{(aref (syntax-table) ch)}}. + Here are the syntax codes corresponding to the various syntax classes: -- 2.39.2