>>>>> "Richard" == Richard Stallman <[EMAIL PROTECTED]> writes:
> Would someone please write documentation in the Lisp Manual for
> syntax-ppss and friends?

How 'bout the patch below?


        Stefan


--- syntax.texi 05 mai 2005 10:32:01 -0400      1.40
+++ syntax.texi 08 jun 2005 18:37:08 -0400      
@@ -256,7 +256,7 @@
 @deffn {Syntax class} @w{inherit}
 This syntax class does not specify a particular syntax.  It says to look
 in the standard syntax table to find the syntax of this character.  The
-designator for this syntax code is @samp{@@}.
+designator for this syntax class is @samp{@@}.
 @end deffn
 
 @deffn {Syntax class} @w{generic comment delimiter}
@@ -385,7 +385,7 @@
 @samp{p} identifies an additional ``prefix character'' for Lisp syntax.
 These characters are treated as whitespace when they appear between
 expressions.  When they appear within an expression, they are handled
-according to their usual syntax codes.
+according to their usual syntax classes.
 
 The function @code{backward-prefix-chars} moves back over these
 characters, as well as over characters whose primary syntax class is
@@ -566,7 +566,7 @@
 
 @defun skip-syntax-forward syntaxes &optional limit
 This function moves point forward across characters having syntax
-classes mentioned in @var{syntaxes} (a string of syntax code
+classes mentioned in @var{syntaxes} (a string of syntax classes
 characters).  It stops when it encounters the end of the buffer, or
 position @var{limit} (if specified), or a character it is not supposed
 to skip.
@@ -730,6 +730,15 @@
 that have nested parentheses.
 @end defun
 
[EMAIL PROTECTED] syntax-ppss &optional pos
+This function returns the state of the parser at position @var{pos} if
+started with a default start state at the beginning of the buffer.
+I.e., it is equivalent to @code(parse-partial-sexp (point-min)
[EMAIL PROTECTED]).  The difference is that @code{syntax-ppss} uses a cache to
+speed up the computation.  This has as a side-effect that the 2nd and
+6th value of the returned state cannot be relied upon.
[EMAIL PROTECTED] defun
+
 @defun scan-lists from count depth
 This function scans forward @var{count} balanced parenthetical groupings
 from position @var{from}.  It returns the position where the scan stops.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to