diff options
| author | Stefan Monnier | 2005-06-13 14:21:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-06-13 14:21:21 +0000 |
| commit | f99ed2f84b36c6b383b213976561d08b10a4192a (patch) | |
| tree | 6268e4c7ff6b2926a17b1e661bedaa9d135eceab | |
| parent | 0e0dddda54491f07cb5a1b871eefd2517144361c (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/syntax.texi | 20 |
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 @@ | |||
| 1 | 2005-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 | |||
| 1 | 2005-06-13 Lute Kamstra <lute@gnu.org> | 6 | 2005-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 | |||
| 740 | parenthesis depth) of the returned state are not meaningful. | 740 | parenthesis depth) of the returned state are not meaningful. |
| 741 | @end defun | 741 | @end defun |
| 742 | 742 | ||
| 743 | @defun syntax-ppss-flush-cache beg | ||
| 744 | This function flushes the cache used by @code{syntax-ppss}, starting at | ||
| 745 | position @var{beg}. | ||
| 746 | |||
| 747 | When @code{syntax-ppss} is called, it automatically hooks itself | ||
| 748 | to @code{before-change-functions} to keep its cache consistent. | ||
| 749 | But this can fail if @code{syntax-ppss} is called while | ||
| 750 | @code{before-change-functions} is temporarily let-bound, or if the | ||
| 751 | buffer is modified without obeying the hook, such as when using | ||
| 752 | @code{inhibit-modification-hooks}. For this reason, it is sometimes | ||
| 753 | necessary to flush the cache manually. | ||
| 754 | @end defun | ||
| 755 | |||
| 756 | @defvar syntax-begin-function | ||
| 757 | If this is non-nil, it should be a function that moves to an earlier | ||
| 758 | buffer position where the parser state is equivalent to @code{nil}, | ||
| 759 | i.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 |
| 744 | This function scans forward @var{count} balanced parenthetical groupings | 764 | This function scans forward @var{count} balanced parenthetical groupings |
| 745 | from position @var{from}. It returns the position where the scan stops. | 765 | from position @var{from}. It returns the position where the scan stops. |