aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-06-13 14:21:21 +0000
committerStefan Monnier2005-06-13 14:21:21 +0000
commitf99ed2f84b36c6b383b213976561d08b10a4192a (patch)
tree6268e4c7ff6b2926a17b1e661bedaa9d135eceab
parent0e0dddda54491f07cb5a1b871eefd2517144361c (diff)
downloademacs-f99ed2f84b36c6b383b213976561d08b10a4192a.tar.gz
emacs-f99ed2f84b36c6b383b213976561d08b10a4192a.zip
(Parsing Expressions): Document aux functions and vars of
syntax-ppss: syntax-ppss-flush-cache and syntax-begin-function.
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/syntax.texi20
2 files changed, 25 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index d7f3b91f3ad..c24bd01e8aa 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * syntax.texi (Parsing Expressions): Document aux functions and vars of
4 syntax-ppss: syntax-ppss-flush-cache and syntax-begin-function.
5
12005-06-13 Lute Kamstra <lute@gnu.org> 62005-06-13 Lute Kamstra <lute@gnu.org>
2 7
3 * text.texi (Special Properties): Fix cross reference. 8 * text.texi (Special Properties): Fix cross reference.
diff --git a/lispref/syntax.texi b/lispref/syntax.texi
index 8efda55b18d..e8707709fe2 100644
--- a/lispref/syntax.texi
+++ b/lispref/syntax.texi
@@ -740,6 +740,26 @@ the 2nd value (previous complete subexpression) and 6th value (minimum
740parenthesis depth) of the returned state are not meaningful. 740parenthesis depth) of the returned state are not meaningful.
741@end defun 741@end defun
742 742
743@defun syntax-ppss-flush-cache beg
744This function flushes the cache used by @code{syntax-ppss}, starting at
745position @var{beg}.
746
747When @code{syntax-ppss} is called, it automatically hooks itself
748to @code{before-change-functions} to keep its cache consistent.
749But this can fail if @code{syntax-ppss} is called while
750@code{before-change-functions} is temporarily let-bound, or if the
751buffer is modified without obeying the hook, such as when using
752@code{inhibit-modification-hooks}. For this reason, it is sometimes
753necessary to flush the cache manually.
754@end defun
755
756@defvar syntax-begin-function
757If this is non-nil, it should be a function that moves to an earlier
758buffer position where the parser state is equivalent to @code{nil},
759i.e., a position outside of any comment, string, or parenthesis.
760@code{syntax-ppss} uses it to supplement its cache.
761@end defvar
762
743@defun scan-lists from count depth 763@defun scan-lists from count depth
744This function scans forward @var{count} balanced parenthetical groupings 764This function scans forward @var{count} balanced parenthetical groupings
745from position @var{from}. It returns the position where the scan stops. 765from position @var{from}. It returns the position where the scan stops.