]> git.eshelyaron.com Git - emacs.git/commitdiff
* syntax.texi (Syntax Table Functions): Document cons cell
authorChong Yidong <cyd@stupidchicken.com>
Fri, 10 Apr 2009 04:57:05 +0000 (04:57 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 10 Apr 2009 04:57:05 +0000 (04:57 +0000)
argument for modify-syntax-entry.
(Categories): Document cons cell argument for
modify-category-entry.

doc/lispref/ChangeLog
doc/lispref/syntax.texi

index 9b1fdf124d27cc7aa35cada36940f1d4b4110f80..503212097d69a35e6e3c3935a367fbffd5f5acea 100644 (file)
@@ -1,5 +1,10 @@
 2009-04-10  Chong Yidong  <cyd@stupidchicken.com>
 
+       * syntax.texi (Syntax Table Functions): Document cons cell
+       argument for modify-syntax-entry.
+       (Categories): Document cons cell argument for
+       modify-category-entry.
+
        * searching.texi (String Search): Document word-search-forward-lax
        and word-search-backward-lax.
        (Searching and Case): Describe isearch behavior more precisely.
index e322e5cb4538821e7de3f4d278ee6a7963711127..38e50e2b7a690d0a286200c160e086f9f9dc36c9 100644 (file)
@@ -418,12 +418,17 @@ not a syntax table.
 
 @deffn Command modify-syntax-entry char syntax-descriptor  &optional table
 This function sets the syntax entry for @var{char} according to
-@var{syntax-descriptor}.  The syntax is changed only for @var{table},
-which defaults to the current buffer's syntax table, and not in any
-other syntax table.  The argument @var{syntax-descriptor} specifies the
-desired syntax; this is a string beginning with a class designator
-character, and optionally containing a matching character and flags as
-well.  @xref{Syntax Descriptors}.
+@var{syntax-descriptor}.  @var{char} can be a character, or a cons
+cell of the form @code{(@var{min} . @var{max})}; in the latter case,
+the function sets the syntax entries for all characters in the range
+between @var{min} and @var{max}, inclusive.
+
+The syntax is changed only for @var{table}, which defaults to the
+current buffer's syntax table, and not in any other syntax table.  The
+argument @var{syntax-descriptor} specifies the desired syntax; this is
+a string beginning with a class designator character, and optionally
+containing a matching character and flags as well.  @xref{Syntax
+Descriptors}.
 
 This function always returns @code{nil}.  The old syntax information in
 the table for this character is discarded.
@@ -1163,12 +1168,15 @@ of the set.
 @end example
 @end defun
 
-@defun modify-category-entry character category &optional table reset
-This function modifies the category set of @var{character} in category
+@defun modify-category-entry char category &optional table reset
+This function modifies the category set of @var{char} in category
 table @var{table} (which defaults to the current buffer's category
-table).
+table).  @var{char} can be a character, or a cons cell of the form
+@code{(@var{min} . @var{max})}; in the latter case, the function
+modifies the category sets of all characters in the range between
+@var{min} and @var{max}, inclusive.
 
-Normally, it modifies the category set by adding @var{category} to it.
+Normally, it modifies a category set by adding @var{category} to it.
 But if @var{reset} is non-@code{nil}, then it deletes @var{category}
 instead.
 @end defun