From ab1006358f7e842451a3656ae4430ebdaa49518a Mon Sep 17 00:00:00 2001 From: Xue Fuqiao Date: Sat, 17 Aug 2013 19:14:10 +0800 Subject: [PATCH] * doc/lispref/modes.texi (SMIE, SMIE Grammar, SMIE Indentation): Add some indexes. --- doc/lispref/ChangeLog | 2 ++ doc/lispref/modes.texi | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index fcf1d3340b1..723dc0cbedf 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,7 @@ 2013-08-17 Xue Fuqiao + * modes.texi (SMIE, SMIE Grammar, SMIE Indentation): Add some indexes. + * text.texi (Maintaining Undo): Mention interactive call of buffer-disable-undo. (Filling): Add cross-reference for hard newlines. diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 59729380ea7..180fef7241d 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -3381,6 +3381,7 @@ of Lisp sexps and adapts it to non-Lisp languages. @node SMIE @subsection Simple Minded Indentation Engine +@cindex SMIE SMIE is a package that provides a generic navigation and indentation engine. Based on a very simple parser using an ``operator precedence @@ -3548,6 +3549,8 @@ simply ignored. @node SMIE Grammar @subsubsection Defining the Grammar of a Language +@cindex SMIE grammar +@cindex grammar, SMIE The usual way to define the SMIE grammar of a language is by defining a new global variable that holds the precedence table by @@ -3623,6 +3626,8 @@ formally as left associative. @node SMIE Lexer @subsubsection Defining Tokens +@cindex SMIE lexer +@cindex defining tokens, SMIE SMIE comes with a predefined lexical analyzer which uses syntax tables in the following way: any sequence of characters that have word or @@ -3757,6 +3762,7 @@ surrounding text to find ad-hoc clues. @node SMIE Indentation @subsubsection Specifying Indentation Rules +@cindex indentation rules, SMIE Based on the provided grammar, SMIE will be able to provide automatic indentation without any extra effort. But in practice, this default -- 2.39.2