Mercurial > emacs
changeset 37122:a34d1e2a580f
Correct syntax table data structure. Other clarifications about
syntax tables.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 01 Apr 2001 03:25:57 +0000 |
parents | f9bd7ef13ddb |
children | 2ddb60a19f54 |
files | man/custom.texi |
diffstat | 1 files changed, 17 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/man/custom.texi Sun Apr 01 03:23:15 2001 +0000 +++ b/man/custom.texi Sun Apr 01 03:25:57 2001 +0000 @@ -1980,23 +1980,28 @@ All the Emacs commands which parse words or balance parentheses are controlled by the @dfn{syntax table}. The syntax table says which characters are opening delimiters, which are parts of words, which are -string quotes, and so on. Each major mode has its own syntax table -(though sometimes related major modes use the same one) which it -installs in each buffer that uses that major mode. The syntax table -installed in the current buffer is the one that all commands use, so we -call it ``the'' syntax table. A syntax table is a Lisp object, a -char-table, whose elements are numbers. +string quotes, and so on. It does this by assigning each character to +one of fifteen-odd @dfn{syntax classes}. In some cases it specifies +some additional information also. + + Each major mode has its own syntax table (though sometimes related +major modes share one syntax table) which it installs in each buffer +that uses the mode. The syntax table installed in the current buffer +is the one that all commands use, so we call it ``the'' syntax table. @kindex C-h s @findex describe-syntax - To display a description of the contents of the current syntax table, -type @kbd{C-h s} (@code{describe-syntax}). The description of each -character includes both the string you would have to give to + To display a description of the contents of the current syntax +table, type @kbd{C-h s} (@code{describe-syntax}). The description of +each character includes both the string you would have to give to @code{modify-syntax-entry} to set up that character's current syntax, -and some English to explain that string if necessary. +starting with the character which designates its syntax class, plus +some English text to explain its meaning. - For full information on the syntax table, see @ref{Syntax Tables,, -Syntax Tables, elisp, The Emacs Lisp Reference Manual}. + A syntax table is actually a Lisp object, a char-table, whose +elements are cons cells. For full information on the syntax table, +see @ref{Syntax Tables,, Syntax Tables, elisp, The Emacs Lisp +Reference Manual}. @node Init File @section The Init File, @file{~/.emacs}