[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/doc/lispref ChangeLog searching.texi
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] emacs/doc/lispref ChangeLog searching.texi |
Date: |
Wed, 15 Apr 2009 21:54:16 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 09/04/15 21:54:16
Modified files:
doc/lispref : ChangeLog searching.texi
Log message:
* searching.texi (Regexp Backslash): Also refer to shy groups as
non-capturing or unnumbered groups.
(Regexp Functions): Add cross-reference to Regexp Backslash.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/lispref/ChangeLog?cvsroot=emacs&r1=1.260&r2=1.261
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/lispref/searching.texi?cvsroot=emacs&r1=1.12&r2=1.13
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/ChangeLog,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -b -r1.260 -r1.261
--- ChangeLog 15 Apr 2009 03:07:06 -0000 1.260
+++ ChangeLog 15 Apr 2009 21:54:15 -0000 1.261
@@ -1,5 +1,9 @@
2009-04-15 Chong Yidong <address@hidden>
+ * searching.texi (Regexp Backslash): Also refer to shy groups as
+ non-capturing or unnumbered groups.
+ (Regexp Functions): Add cross-reference to Regexp Backslash.
+
* display.texi (Truncation): Overlays can use line-prefix and
wrap-prefix too.
(Overlay Properties): Document wrap-prefix and line-prefix.
Index: searching.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/searching.texi,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- searching.texi 10 Apr 2009 04:48:05 -0000 1.12
+++ searching.texi 15 Apr 2009 21:54:15 -0000 1.13
@@ -654,14 +654,19 @@
shy groups.
@item \(?: @dots{} \)
address@hidden shy groups
address@hidden non-capturing group
address@hidden unnumbered group
is the @dfn{shy group} construct. A shy group serves the first two
purposes of an ordinary group (controlling the nesting of other
operators), but it does not get a number, so you cannot refer back to
-its value with @address@hidden
+its value with @address@hidden Shy groups are particularly
+useful for mechanically-constructed regular expressions, because they
+can be added automatically without altering the numbering of ordinary,
+non-shy groups.
-Shy groups are particularly useful for mechanically-constructed regular
-expressions because they can be added automatically without altering the
-numbering of any ordinary, non-shy groups.
+Shy groups are also called @dfn{non-capturing} or @dfn{unnumbered
+groups}.
@item \(address@hidden: @dots{} \)
is the @dfn{explicitly numbered group} construct. Normal groups get
@@ -939,8 +944,8 @@
@defun regexp-opt-depth regexp
This function returns the total number of grouping constructs
-(parenthesized expressions) in @var{regexp}. (This does not include
-shy groups.)
+(parenthesized expressions) in @var{regexp}. This does not include
+shy groups (@pxref{Regexp Backslash}).
@end defun
@node Regexp Search