From: Alan Mackenzie Date: Thu, 22 Feb 2018 18:21:47 +0000 (+0000) Subject: Document, in the Elisp manual, how to get a character's raw syntax descriptor X-Git-Tag: emacs-26.1-rc1~169 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76f5242838c84bcaf5003b18a31104114930f197;p=emacs.git 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. --- 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: